libyui/libyui.spec

191 lines
5.2 KiB
RPMSpec
Raw Normal View History

2013-05-15 19:06:23 +00:00
%global libsuffix yui
%global major_so_ver 5
2013-05-15 19:06:23 +00:00
# This flag breaks the dependency loop between libyui and ui plugin packages
# to make it possible to (re)build plugin packages for libyui ABI changes.
# Uncomment next line when rebuilding on ABI changes.
#%%global no_ui_dep 1
2013-05-15 19:06:23 +00:00
Name: lib%{libsuffix}
2013-08-30 08:48:25 +00:00
Version: 3.0.10
Release: 1%{?dist}
Summary: GUI-abstraction library
2013-05-15 19:06:23 +00:00
License: (LGPLv2 or LGPLv3) and MIT
URL: https://github.com/%{name}/%{name}
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
2013-05-15 19:06:23 +00:00
BuildRequires: boost-devel
BuildRequires: cmake >= 2.8
BuildRequires: doxygen-latex
2013-05-15 19:06:23 +00:00
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: pkgconfig
%{?!no_ui_dep:Requires: yui-ui%{?_isa} = %{major_so_ver}}
2013-05-15 19:06:23 +00:00
%description
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.
%{name} has very few dependencies.
%package devel
Summary: Files needed for developing with %{name}
2013-05-15 19:06:23 +00:00
Requires: boost-devel%{?_isa}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{name}-devel-common = %{version}-%{release}
2013-05-15 19:06:23 +00:00
%description devel
%{name} can be used independently of YaST for generic (C++) applications
and has very few dependencies.
%package devel-common
Summary: Common files needed for developing with %{name}
2013-05-15 19:06:23 +00:00
BuildArch: noarch
Requires: %{name}-devel = %{version}-%{release}
%description devel-common
%{summary}, e.g. headers and CMake-macros.
%package doc
2013-05-15 19:06:23 +00:00
Summary: Documentation files for %{name}
BuildArch: noarch
2013-05-15 19:06:23 +00:00
%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}.
2013-05-15 19:06:23 +00:00
%prep
%setup -q -n %{name}-%{name}-master-%{version}
2013-05-15 19:06:23 +00:00
./bootstrap.sh
2013-05-15 19:06:23 +00:00
%build
mkdir -p build
2013-08-30 08:48:25 +00:00
pushd build
2013-05-15 19:06:23 +00:00
%cmake ..\
-DPREFIX=%{_prefix} \
-DLIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE=RELEASE \
-DRESPECT_FLAGS=ON
2013-05-15 19:06:23 +00:00
make %{?_smp_mflags}
make %{?_smp_mflags} docs
%install
2013-08-30 08:48:25 +00:00
pushd build
2013-05-15 19:06:23 +00:00
%make_install
install -m0755 -d %{buildroot}%{_libdir}/%{libsuffix}
install -m0755 -d %{buildroot}%{_datadir}/%{name}/theme
2013-05-15 19:06:23 +00:00
# remove preinstalled stuff in docdir
# get's picked-up by -doc-pkg later
rm -rf %{buildroot}%{_defaultdocdir} ../examples/CMake*
2013-05-15 19:06:23 +00:00
# prep docs
mv ./doc/html ..
mv ./doc/latex/refman.pdf ..
rm -rf ../html/*.m*
%fdupes ../html
2013-05-15 19:06:23 +00:00
%post -p /sbin/ldconfig
2013-05-15 19:06:23 +00:00
%postun -p /sbin/ldconfig
%files
%doc COPYING*
2013-08-30 08:48:25 +00:00
%{_libdir}/%{name}.so.%{major_so_ver}*
2013-05-15 19:06:23 +00:00
%dir %{_libdir}/%{libsuffix}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/theme
%files devel
2013-08-30 08:48:25 +00:00
%{_libdir}/%{name}.so
2013-05-15 19:06:23 +00:00
%{_libdir}/pkgconfig/%{name}.pc
2013-08-30 08:48:25 +00:00
%{_libdir}/cmake
%files devel-common
%{_includedir}/%{libsuffix}
2013-05-15 19:06:23 +00:00
%{_datadir}/%{name}/buildtools
%files doc
%doc COPYING* ChangeLog *.pdf examples/ html/
2013-05-15 19:06:23 +00:00
%changelog
2013-08-30 08:48:25 +00:00
* Fri Aug 30 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.10-1
- new upstream version
2013-07-30 12:23:19 +00:00
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 3.0.9-2
- Rebuild for boost 1.54.0
* Sat Jul 27 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.9-1
- new upstream version
- restructured spec for better readability
- removed %%commit, using direct github-tarball
- removed hardening flags and Group-tag
- removed CMake-Requires from devel-pkg
- added devel-common-pkg
- fixed License
- installing docs manually, adding PDF to doc-pkg
* Thu May 16 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.5-2
- fixed -doc licensing html/ is LGPLv2 or LGPLv3 examples/ is MIT
* Thu May 16 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.5-1
- new upstream version: obsoletes Patch0/1
- modified Requires: yui_ui to to depend on %%{major_so_ver}
- install lib*.so.%%{major_so_ver}* in main-pkg not lib*.so.*
- add `-DRESPECT_FLAGS=ON`
* Wed May 15 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.4-2
- readded Requires: yui_ui with conditional for ABI changes as proposed:
https://bugzilla.redhat.com/show_bug.cgi?id=959926#c9
2013-05-15 19:06:23 +00:00
* Wed May 15 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.4-1
- new upstream version
- add Patch1 to skip generation of pdf-docs if doxygen-latex is installed.
- added needed bootstrap to prep
* Tue May 14 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.3-3
- removed macro from Patch0.
- fixed typo -> s/pakage/package/
- removed Provides/Requires: yui_ui
* Mon May 13 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.3-2
- fixup as suggested in https://bugzilla.redhat.com/show_bug.cgi?id=959926#c2
- add Patch0 to obey conventions about the compiler flags set in the system
rpm configuration. See:
https://fedoraproject.org/wiki/Packaging:Guidelines#Compiler_flags
- fixup as suggested in https://bugzilla.redhat.com/show_bug.cgi?id=959926#c4
- build a hardened version just in case
- add Requires: yui-ui, because libyui without UI-plugins is as
2013-05-15 19:06:23 +00:00
useful as a car without gas and tires.
- add -devel Provides: yui-ui to provide a FAKE yui-ui to
2013-05-15 19:06:23 +00:00
satisfy dependencies during rpmbuild of the UI-plugins and made sure this
is known by documenting this in libyui-devel description.
2013-05-15 19:06:23 +00:00
- add -devel Requires: cmake to solve the /usr/lib*/cmake/ ownership-problem,
which is needed for libyui*-builds anyways.
* Mon May 06 2013 Björn Esser <bjoern.esser@gmail.com> - 3.0.3-1
- Initial RPM release.