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 libsuffix yui
|
||||||
%global libname lib%{libsuffix}
|
%global libname lib%{libsuffix}
|
||||||
%global devel_min_ver 3.0.4
|
%global devel_min_ver 3.0.4
|
||||||
%global major_so_ver 6
|
%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
|
Name: %{libname}-gtk
|
||||||
Version: 2.44.5
|
Version: 2.44.5
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Gtk3 User Interface for %{libname}
|
Summary: Gtk3 User Interface for %{libname}
|
||||||
|
|
||||||
License: LGPLv2 or LGPLv3
|
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
|
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
BuildRequires: cmake >= 2.8
|
BuildRequires: cmake >= 2.8
|
||||||
BuildRequires: doxygen
|
|
||||||
BuildRequires: fdupes
|
|
||||||
BuildRequires: graphviz
|
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
BuildRequires: %{libname}-devel >= %{devel_min_ver}
|
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}
|
Summary: Documentation files for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: doxygen
|
||||||
|
BuildRequires: graphviz
|
||||||
|
BuildRequires: hardlink
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package includes the developer's documentation as HTML
|
This package includes the developer's documentation as HTML
|
||||||
for %{name}.
|
for %{name}.
|
||||||
@ -62,51 +71,64 @@ for %{name}.
|
|||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
mkdir -p build
|
%{__mkdir} -p %{_cmake_build_subdir}
|
||||||
pushd build
|
pushd %{_cmake_build_subdir}
|
||||||
%cmake \
|
%cmake \
|
||||||
-DENABLE_WERROR=OFF \
|
-DENABLE_WERROR=OFF \
|
||||||
-DPREFIX=%{_prefix} \
|
-DYPREFIX=%{_prefix} \
|
||||||
-DLIB_DIR=%{_libdir} \
|
-DLIB_DIR=%{_libdir} \
|
||||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||||
-DRESPECT_FLAGS=ON \
|
-DRESPECT_FLAGS=ON \
|
||||||
..
|
..
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
%{__make} %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} docs
|
%{__make} %{?_smp_mflags} docs
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
pushd build
|
pushd %{_cmake_build_subdir}
|
||||||
mkdir -p %{buildroot}%{_libdir}/%{libsuffix} \
|
%{__mkdir} -p %{buildroot}%{_libdir}/%{libsuffix} \
|
||||||
%{buildroot}%{_datadir}/%{name}/theme
|
%{buildroot}%{_datadir}/%{name}/theme
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
rm -rf %{buildroot}%{_defaultdocdir} \
|
# Delete obsolete files.
|
||||||
../examples/CMake* \
|
%{__rm} -rf %{buildroot}%{_defaultdocdir} \
|
||||||
doc/html/*.m*
|
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
|
popd
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc ChangeLog COPYING*
|
%doc %dir %{?_pkgdocdir}
|
||||||
|
%doc %{?_pkgdocdir}/COPYING*
|
||||||
%{_libdir}/%{libsuffix}/%{name}.so.%{major_so_ver}*
|
%{_libdir}/%{libsuffix}/%{name}.so.%{major_so_ver}*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
|
%doc %{?_pkgdocdir}/ChangeLog
|
||||||
%{_includedir}/%{libsuffix}/*
|
%{_includedir}/%{libsuffix}/*
|
||||||
%{_libdir}/%{libsuffix}/%{name}.so
|
%{_libdir}/%{libsuffix}/%{name}.so
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_libdir}/cmake
|
%{_libdir}/cmake
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%doc ChangeLog COPYING* build/doc/html/
|
%doc %{?_pkgdocdir}
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user