rebuilt for libyui-3.1.5
keep doc-files in unfied %%{_pkgdocdir} small improvements to spec-file
This commit is contained in:
parent
0bb2eec725
commit
5c49d96558
@ -1,11 +1,19 @@
|
||||
# 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: 4%{?dist}
|
||||
Release: 5%{?dist}
|
||||
Summary: Gtk3 User Interface for %{libname}
|
||||
|
||||
License: LGPLv2 or LGPLv3
|
||||
@ -13,9 +21,6 @@ URL: https://github.com/%{libname}/%{name}
|
||||
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||
|
||||
BuildRequires: cmake >= 2.8
|
||||
BuildRequires: doxygen
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: graphviz
|
||||
BuildRequires: gtk3-devel
|
||||
BuildRequires: %{libname}-devel >= %{devel_min_ver}
|
||||
|
||||
@ -51,6 +56,10 @@ for %{name} which is not covered within the UI-plugin.
|
||||
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}.
|
||||
@ -62,51 +71,64 @@ for %{name}.
|
||||
|
||||
|
||||
%build
|
||||
mkdir -p build
|
||||
pushd build
|
||||
%cmake \
|
||||
-DENABLE_WERROR=OFF \
|
||||
-DPREFIX=%{_prefix} \
|
||||
-DLIB_DIR=%{_libdir} \
|
||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||
-DRESPECT_FLAGS=ON \
|
||||
%{__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
|
||||
%{__make} %{?_smp_mflags}
|
||||
%{__make} %{?_smp_mflags} docs
|
||||
popd
|
||||
|
||||
|
||||
%install
|
||||
pushd build
|
||||
mkdir -p %{buildroot}%{_libdir}/%{libsuffix} \
|
||||
%{buildroot}%{_datadir}/%{name}/theme
|
||||
pushd %{_cmake_build_subdir}
|
||||
%{__mkdir} -p %{buildroot}%{_libdir}/%{libsuffix} \
|
||||
%{buildroot}%{_datadir}/%{name}/theme
|
||||
|
||||
%make_install
|
||||
|
||||
rm -rf %{buildroot}%{_defaultdocdir} \
|
||||
../examples/CMake* \
|
||||
doc/html/*.m*
|
||||
# Delete obsolete files.
|
||||
%{__rm} -rf %{buildroot}%{_defaultdocdir} \
|
||||
doc/html/*.m*
|
||||
|
||||
%fdupes doc/html
|
||||
# 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 ChangeLog COPYING*
|
||||
%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 ChangeLog COPYING* build/doc/html/
|
||||
%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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user