remove build of pdf-autodocs

minor improvents on spec
This commit is contained in:
Björn Esser 2014-05-23 17:20:23 +02:00
parent 506f386cae
commit 9d60ce958d

View File

@ -6,101 +6,99 @@
# Uncomment next line when rebuilding on ABI changes. # Uncomment next line when rebuilding on ABI changes.
%global no_ui_dep 1 %global no_ui_dep 1
Name: lib%{libsuffix} Name: lib%{libsuffix}
Version: 3.0.13 Version: 3.0.13
Release: 1%{?dist} Release: 2%{?dist}
Summary: GUI-abstraction library Summary: GUI-abstraction library
License: (LGPLv2 or LGPLv3) and MIT License: (LGPLv2 or LGPLv3) and MIT
URL: https://github.com/%{name}/%{name} URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: boost-devel BuildRequires: boost-devel
BuildRequires: cmake >= 2.8 BuildRequires: cmake >= 2.8
BuildRequires: doxygen-latex BuildRequires: doxygen
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: graphviz BuildRequires: graphviz
BuildRequires: pkgconfig
%{!?no_ui_dep:Requires: yui-ui%{?_isa} = %{major_so_ver}}
%{?!no_ui_dep:Requires: yui-ui%{?_isa} == %{major_so_ver}}
%description %description
This is the user interface engine that provides the abstraction from This is the user interface engine that provides the abstraction
graphical user interfaces (Qt, Gtk) and text based user interfaces from graphical user interfaces (Qt, Gtk) and text based user
(ncurses). interfaces (ncurses).
Originally developed for YaST, %{name} can now be used independently of Originally developed for YaST, %{name} can now be used
YaST for generic (C++) applications. independently of YaST for generic (C++) applications.
%{name} has very few dependencies. %{name} has very few dependencies.
%package devel %package devel
Summary: Files needed for developing with %{name} Summary: Files needed for developing with %{name}
Requires: boost-devel%{?_isa} Requires: boost-devel%{?_isa}
Requires: %{name}%{?_isa} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
Obsoletes: %{name}-devel-common <= %{version}-%{release} %if 0%{?fedora} && 0%{?fedora} <= 22
Obsoletes: %{name}-devel-common <= %{version}-%{release}
%endif #0%{?fedora} && 0%{?fedora} <= 22
%description devel %description devel
%{name} can be used independently of YaST for generic (C++) applications %{name} can be used independently of YaST for generic (C++)
and has very few dependencies. applications and has very few dependencies.
%package doc %package doc
Summary: Documentation files for %{name} Summary: Documentation files for %{name}
BuildArch: noarch
BuildArch: noarch
%description doc %description doc
This package includes the developer's documentation as PDF and HTML, This package includes the developer's documentation and some
a changelog and some brief examples how to build a UI using %{name}. brief examples how to build a UI using %{name}.
%prep %prep
%setup -q -n %{name}-%{name}-master-%{version} %setup -qn %{name}-%{name}-master-%{version}
./bootstrap.sh ./bootstrap.sh
%build %build
mkdir -p build mkdir -p build
pushd build pushd build
%cmake ..\ %cmake \
-DPREFIX=%{_prefix} \ -DPREFIX=%{_prefix} \
-DLIB_DIR=%{_libdir} \ -DLIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_BUILD_TYPE=RELEASE \
-DRESPECT_FLAGS=ON -DRESPECT_FLAGS=ON \
..
make %{?_smp_mflags} make %{?_smp_mflags}
make %{?_smp_mflags} docs make %{?_smp_mflags} docs
popd
%install %install
pushd build pushd build
mkdir -p %{buildroot}%{_libdir}/%{libsuffix} \
%{buildroot}%{_datadir}/%{name}/theme
%make_install %make_install
install -m0755 -d %{buildroot}%{_libdir}/%{libsuffix} rm -rf %{buildroot}%{_defaultdocdir} \
install -m0755 -d %{buildroot}%{_datadir}/%{name}/theme ../examples/CMake* \
doc/html/*.m*
# remove preinstalled stuff in docdir %fdupes doc/html
# get's picked-up by -doc-pkg later popd
rm -rf %{buildroot}%{_defaultdocdir} ../examples/CMake*
# prep docs
mv ./doc/html ..
mv ./doc/latex/refman.pdf ..
rm -rf ../html/*.m*
%fdupes ../html
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%doc COPYING* %doc ChangeLog COPYING*
%{_libdir}/%{name}.so.%{major_so_ver}* %{_libdir}/%{name}.so.%{major_so_ver}*
%dir %{_libdir}/%{libsuffix} %dir %{_libdir}/%{libsuffix}
%dir %{_datadir}/%{name} %dir %{_datadir}/%{name}
@ -114,14 +112,18 @@ rm -rf ../html/*.m*
%{_libdir}/cmake %{_libdir}/cmake
%files doc %files doc
%doc COPYING* ChangeLog *.pdf examples/ html/ %doc ChangeLog COPYING* examples/ build/doc/html/
%changelog %changelog
* Fri May 23 2014 Björn Esser <bjoern.esser@gmail.com> - 3.0.13-2
- remove build of pdf-autodocs
- minor improvents on spec
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 3.0.13-1 * Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 3.0.13-1
- Rebuild for boost 1.55.0 - Rebuild for boost 1.55.0
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 3.0.13-1 * Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 3.0.13-0
- new upstream release (#1048445) - new upstream release (#1048445)
* Fri Aug 30 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.10-1 * Fri Aug 30 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.10-1