libyui-gtk/libyui-gtk.spec

146 lines
3.6 KiB
RPMSpec
Raw Normal View History

2013-05-16 17:52:40 +00:00
%global commit 917b2ba3dc947e384b7ae581d73cd21a04ceeaa1
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global libsuffix yui
%global libname lib%{libsuffix}
%global devel_min_ver 3.0.4
%global major_so_ver 5
%global _hardened_build 1
Name: %{libname}-gtk
Version: 2.43.3
Release: 4%{?dist}
2013-05-16 17:52:40 +00:00
License: LGPLv2 or LGPLv3
Source: https://github.com/%{libname}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Group: System Environment/Libraries
BuildRequires: doxygen
BuildRequires: fdupes
BuildRequires: graphviz
BuildRequires: gtk3-devel
BuildRequires: %{libname}-devel >= %{devel_min_ver}
URL: https://github.com/%{libname}/%{name}/
Summary: Gtk3 User Interface for %{libname}
Provides: %{libsuffix}-ui%{?_isa} = %{major_so_ver}
%description
This package contains the Gtk3 user interface component for %{libname}.
%package devel
Group: Development/Libraries
Requires: gtk3-devel%{?_isa}
Requires: %{libname}-devel%{?_isa} >= %{devel_min_ver}
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: Files needed for developing with %{name}
%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}. Use of
%{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
Group: Documentation
BuildArch: noarch
Summary: Documentation files for %{name}
%description doc
This package includes the developer's documentation as HTML for %{name}.
%prep
%setup -q -n %{name}-%{commit}
./bootstrap.sh
%build
mkdir -p build
cd build
%cmake .. \
-DENABLE_WERROR=OFF \
2013-05-16 17:52:40 +00:00
-DPREFIX=%{_prefix} \
-DLIB_DIR=%{_libdir} \
-DDOC_DIR=%{_defaultdocdir} \
-DDOC_SUBDIR=%{name}-%{version} \
-DINSTALL_DOCS=ON \
-DSKIP_LATEX=ON \
-DCMAKE_BUILD_TYPE=RELEASE \
-DRESPECT_FLAGS=ON
make %{?_smp_mflags}
make %{?_smp_mflags} docs
%install
cd build
%make_install
install -pm0644 ../COPYING* %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
install -pm0644 ../ChangeLog %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
%fdupes %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
%files
%{_libdir}/%{libsuffix}/lib*.so.%{major_so_ver}*
%dir %{_defaultdocdir}/%{name}-%{version}
%doc %{_defaultdocdir}/%{name}-%{version}/C*
%files devel
%{_libdir}/%{libsuffix}/lib*.so
%{_includedir}/%{libsuffix}/*
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}
%files doc
%dir %{_defaultdocdir}/%{name}-%{version}
%doc %{_defaultdocdir}/%{name}-%{version}/*/
%changelog
* 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
2013-05-16 17:52:40 +00:00
* 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.