libyui-gtk/libyui-gtk.spec
Björn Esser 5c49d96558 rebuilt for libyui-3.1.5
keep doc-files in unfied %%{_pkgdocdir}
small improvements to spec-file
2015-01-20 10:55:30 +01:00

180 lines
5.0 KiB
RPMSpec

# Define libsuffix, minimum libyui-devel version
# and so-version of libyui.
%global libsuffix yui
%global libname lib%{libsuffix}
%global devel_min_ver 3.0.4
%global major_so_ver 6
# Setup _pkgdocdir if not defined already.
%{!?_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}-%{version}}
# CMake-builds go out-of-tree.
%global _cmake_build_subdir build-%{?_arch}%{?dist}
Name: %{libname}-gtk
Version: 2.44.5
Release: 5%{?dist}
Summary: Gtk3 User Interface for %{libname}
License: LGPLv2 or LGPLv3
URL: https://github.com/%{libname}/%{name}
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake >= 2.8
BuildRequires: gtk3-devel
BuildRequires: %{libname}-devel >= %{devel_min_ver}
Provides: %{libsuffix}-ui%{?_isa} == %{major_so_ver}
%description
This package contains the Gtk3 user interface component
for %{libname}.
%package devel
Summary: Files needed for developing with %{name}
Requires: gtk3-devel%{?_isa}
Requires: %{libname}-devel%{?_isa} >= %{devel_min_ver}
Requires: %{name}%{?_isa} == %{version}-%{release}
%if 0%{?fedora} && 0%{?fedora} <= 22
Obsoletes: %{name}-devel-common <= %{version}-%{release}
%endif #0%{?fedora} && 0%{?fedora} <= 22
%description devel
%{libname} can be used independently of YaST for generic (C++)
applications and has very few dependencies.
You do NOT need this package for developing with %{libname}.
Using%{libname}-devel is sufficient for such purpose. This
package is only needed when you want to develop an extension
for %{name} which is not covered within the UI-plugin.
%package doc
Summary: Documentation files for %{name}
BuildArch: noarch
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: hardlink
%description doc
This package includes the developer's documentation as HTML
for %{name}.
%prep
%setup -qn %{name}-%{name}-master-%{version}
./bootstrap.sh
%build
%{__mkdir} -p %{_cmake_build_subdir}
pushd %{_cmake_build_subdir}
%cmake \
-DENABLE_WERROR=OFF \
-DYPREFIX=%{_prefix} \
-DLIB_DIR=%{_libdir} \
-DCMAKE_BUILD_TYPE=RELEASE \
-DRESPECT_FLAGS=ON \
..
%{__make} %{?_smp_mflags}
%{__make} %{?_smp_mflags} docs
popd
%install
pushd %{_cmake_build_subdir}
%{__mkdir} -p %{buildroot}%{_libdir}/%{libsuffix} \
%{buildroot}%{_datadir}/%{name}/theme
%make_install
# Delete obsolete files.
%{__rm} -rf %{buildroot}%{_defaultdocdir} \
doc/html/*.m*
# Hard-link documentation.
%{_sbindir}/hardlink -cv doc/html
# Install documentation.
%{__mkdir} -p %{buildroot}%{?_pkgdocdir}
%{__cp} -a ../ChangeLog ../COPYING* doc/html/ \
%{buildroot}%{?_pkgdocdir}
popd
%files
%doc %dir %{?_pkgdocdir}
%doc %{?_pkgdocdir}/COPYING*
%{_libdir}/%{libsuffix}/%{name}.so.%{major_so_ver}*
%files devel
%doc %{?_pkgdocdir}/ChangeLog
%{_includedir}/%{libsuffix}/*
%{_libdir}/%{libsuffix}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake
%files doc
%doc %{?_pkgdocdir}
%changelog
* Tue Jan 20 2015 Björn Esser <bjoern.esser@gmail.com> - 2.44.5-5
- rebuilt for libyui-3.1.5
- keep doc-files in unfied %%{_pkgdocdir}
- small improvements to spec-file
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.44.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat May 24 2014 Björn Esser <bjoern.esser@gmail.com> - 2.44.5-2
- no need to provide `%%{name}-devel-common`
* Fri May 23 2014 Björn Esser <bjoern.esser@gmail.com> - 2.44.5-1
- new upstream release
* Fri May 23 2014 Björn Esser <bjoern.esser@gmail.com> - 2.43.7-3
- Rebuild for boost 1.55.0
* Tue Mar 18 2014 Björn Esser <bjoern.esser@gmail.com> - 2.43.7-2
- rebuilt for libyui-3.0.13
- remove build of pdf-autodocs
- remove the devel-common subpkg
- minor improvents on spec
* Fri Aug 30 2013 Björn Esser <bjoern.esser@gmail.com> - 2.43.7-1
- new upstream version
- restructured spec to match with libyui
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.43.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu May 16 2013 Björn Esser <bjoern.esser@gmail.com> - 2.43.3-3
- build fails on rawhide with -Werror enabled, because of
'gtk_widget_modify_fg' is deprecated in gtk3-devel >= 3.9.0,
use 'gtk_widget_override_color' instead [-Werror=deprecated-declarations]
- informed upstream and provided build-logs
- added cmake -DENABLE_WERROR=OFF
* Thu May 16 2013 Björn Esser <bjoern.esser@gmail.com> - 2.43.3-2
- changed Provides: `yui_ui =` from `version` to `major_so_ver`
- install lib*.so.`major_so_ver`* in main-pkg not lib*.so.*
- add `-DRESPECT_FLAGS=ON`, will be honored by libyui <= 3.0.5
- removed macros from changelog
* Wed May 15 2013 Björn Esser <bjoern.esser@gmail.com> - 2.43.3-1
- new upstream version
- adjusted libyui-devel min-version
- added needed bootstrap to prep
* Mon May 13 2013 Björn Esser <bjoern.esser@gmail.com> - 2.43.2-1
- Initial RPM release.