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