new upstream version
restructured spec to match with libyui
This commit is contained in:
parent
2b12fe2445
commit
5f98de479e
|
@ -1 +1,4 @@
|
||||||
/libyui-gtk-2.43.3-917b2ba.tar.gz
|
*~
|
||||||
|
*.rpm
|
||||||
|
*.tar*
|
||||||
|
results_*/
|
||||||
|
|
|
@ -1,29 +1,24 @@
|
||||||
%global commit 917b2ba3dc947e384b7ae581d73cd21a04ceeaa1
|
|
||||||
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
||||||
%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 5
|
%global major_so_ver 5
|
||||||
|
|
||||||
%global _hardened_build 1
|
|
||||||
|
|
||||||
|
|
||||||
Name: %{libname}-gtk
|
Name: %{libname}-gtk
|
||||||
Version: 2.43.3
|
Version: 2.43.7
|
||||||
Release: 4%{?dist}
|
Release: 1%{?dist}
|
||||||
License: LGPLv2 or LGPLv3
|
Summary: Gtk3 User Interface for %{libname}
|
||||||
Source: https://github.com/%{libname}/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
|
|
||||||
Group: System Environment/Libraries
|
|
||||||
|
|
||||||
BuildRequires: doxygen
|
License: LGPLv2 or LGPLv3
|
||||||
|
URL: https://github.com/%{libname}/%{name}
|
||||||
|
Source0: %{url}/archive/%{name}/master/%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: doxygen-latex
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: graphviz
|
BuildRequires: graphviz
|
||||||
BuildRequires: gtk3-devel
|
BuildRequires: gtk3-devel
|
||||||
BuildRequires: %{libname}-devel >= %{devel_min_ver}
|
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}
|
Provides: %{libsuffix}-ui%{?_isa} = %{major_so_ver}
|
||||||
|
|
||||||
|
|
||||||
|
@ -32,15 +27,12 @@ This package contains the Gtk3 user interface component for %{libname}.
|
||||||
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
|
Summary: Files needed for developing with %{name}
|
||||||
Group: Development/Libraries
|
|
||||||
|
|
||||||
Requires: gtk3-devel%{?_isa}
|
Requires: gtk3-devel%{?_isa}
|
||||||
Requires: %{libname}-devel%{?_isa} >= %{devel_min_ver}
|
Requires: %{libname}-devel%{?_isa} >= %{devel_min_ver}
|
||||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||||
|
Requires: %{name}-devel-common = %{version}-%{release}
|
||||||
Summary: Files needed for developing with %{name}
|
|
||||||
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
%{libname} can be used independently of YaST for generic (C++) applications
|
%{libname} can be used independently of YaST for generic (C++) applications
|
||||||
|
@ -52,37 +44,36 @@ This package is only needed when you want to develop an extension for
|
||||||
%{name} which is not covered within the UI-plugin.
|
%{name} which is not covered within the UI-plugin.
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package devel-common
|
||||||
|
Summary: Common files needed for developing with %{name}
|
||||||
Group: Documentation
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
Requires: %{name}-devel = %{version}-%{release}
|
||||||
|
|
||||||
|
%description devel-common
|
||||||
|
%{summary}, e.g. headers and CMake-macros.
|
||||||
|
|
||||||
|
|
||||||
|
%package doc
|
||||||
Summary: Documentation files for %{name}
|
Summary: Documentation files for %{name}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
This package includes the developer's documentation as HTML for %{name}.
|
This package includes the developer's documentation as HTML for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{commit}
|
%setup -q -n %{name}-%{name}-master-%{version}
|
||||||
./bootstrap.sh
|
./bootstrap.sh
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
cd build
|
pushd build
|
||||||
|
|
||||||
%cmake .. \
|
%cmake .. \
|
||||||
-DENABLE_WERROR=OFF \
|
-DENABLE_WERROR=OFF \
|
||||||
-DPREFIX=%{_prefix} \
|
-DPREFIX=%{_prefix} \
|
||||||
-DLIB_DIR=%{_libdir} \
|
-DLIB_DIR=%{_libdir} \
|
||||||
-DDOC_DIR=%{_defaultdocdir} \
|
|
||||||
-DDOC_SUBDIR=%{name}-%{version} \
|
|
||||||
-DINSTALL_DOCS=ON \
|
|
||||||
-DSKIP_LATEX=ON \
|
|
||||||
-DCMAKE_BUILD_TYPE=RELEASE \
|
-DCMAKE_BUILD_TYPE=RELEASE \
|
||||||
-DRESPECT_FLAGS=ON
|
-DRESPECT_FLAGS=ON
|
||||||
|
|
||||||
|
@ -91,35 +82,41 @@ make %{?_smp_mflags} docs
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
cd build
|
pushd build
|
||||||
|
|
||||||
%make_install
|
%make_install
|
||||||
|
|
||||||
install -pm0644 ../COPYING* %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
|
# remove preinstalled stuff in docdir
|
||||||
install -pm0644 ../ChangeLog %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
|
# get's picked-up by -doc-pkg later
|
||||||
|
rm -rf %{buildroot}%{_defaultdocdir} ../examples/CMake*
|
||||||
|
|
||||||
%fdupes %{buildroot}/%{_defaultdocdir}/%{name}-%{version}
|
# prep docs
|
||||||
|
mv ./doc/html ..
|
||||||
|
mv ./doc/latex/refman.pdf ..
|
||||||
|
rm -rf ../html/*.m*
|
||||||
|
%fdupes ../html
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{_libdir}/%{libsuffix}/lib*.so.%{major_so_ver}*
|
%doc COPYING*
|
||||||
%dir %{_defaultdocdir}/%{name}-%{version}
|
%{_libdir}/%{libsuffix}/%{name}.so.%{major_so_ver}*
|
||||||
%doc %{_defaultdocdir}/%{name}-%{version}/C*
|
|
||||||
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%{_libdir}/%{libsuffix}/lib*.so
|
%{_libdir}/%{libsuffix}/%{name}.so
|
||||||
%{_includedir}/%{libsuffix}/*
|
|
||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
%{_libdir}/cmake/%{name}
|
%{_libdir}/cmake
|
||||||
|
|
||||||
|
%files devel-common
|
||||||
|
%{_includedir}/%{libsuffix}/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%dir %{_defaultdocdir}/%{name}-%{version}
|
%doc COPYING* ChangeLog *.pdf html/
|
||||||
%doc %{_defaultdocdir}/%{name}-%{version}/*/
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* 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
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue