Cleanup
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/gflags?expand=0&rev=2
This commit is contained in:
parent
81f36c4a5d
commit
04e4469437
26
gflags.spec
26
gflags.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package gflags
|
# spec file for package gflags
|
||||||
#
|
#
|
||||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -12,7 +12,7 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
@ -22,13 +22,12 @@ Release: 0
|
|||||||
Summary: Library for commandline flag processing
|
Summary: Library for commandline flag processing
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Url: https://github.com/gflags/gflags
|
URL: https://github.com/gflags/gflags
|
||||||
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
Requires: libgflags2 = %{version}
|
Requires: libgflags2 = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The gflags package contains a library that implements commandline
|
The gflags package contains a library that implements commandline
|
||||||
@ -48,7 +47,7 @@ string, and the ability to define flags in the source file in which
|
|||||||
they're used.
|
they're used.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Include Files and Libraries mandatory for Development
|
Summary: Development files for gflags library
|
||||||
Requires: libgflags2 = %{version}
|
Requires: libgflags2 = %{version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
@ -57,7 +56,7 @@ to develop applications that require the provided includes and
|
|||||||
libraries.
|
libraries.
|
||||||
|
|
||||||
%package devel-static
|
%package devel-static
|
||||||
Summary: Include Files and Libraries mandatory for Development
|
Summary: Statically linked development libraries for gflags
|
||||||
Requires: %{name}-devel = %{version}
|
Requires: %{name}-devel = %{version}
|
||||||
|
|
||||||
%description devel-static
|
%description devel-static
|
||||||
@ -83,29 +82,27 @@ make %{?_smp_mflags} VERBOSE=1
|
|||||||
%install
|
%install
|
||||||
%cmake_install
|
%cmake_install
|
||||||
|
|
||||||
|
# Installs a file on $HOME, remove it
|
||||||
rm -rf %{buildroot}/home/
|
rm -rf %{buildroot}/home/
|
||||||
|
|
||||||
%check
|
%check
|
||||||
cd build
|
export LD_LIBRARY_PATH=`pwd`/build/lib
|
||||||
export LD_LIBRARY_PATH=`pwd`/lib
|
%ctest
|
||||||
ctest
|
|
||||||
|
|
||||||
%post -n libgflags2 -p /sbin/ldconfig
|
%post -n libgflags2 -p /sbin/ldconfig
|
||||||
%postun -n libgflags2 -p /sbin/ldconfig
|
%postun -n libgflags2 -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%license COPYING.txt
|
||||||
%doc AUTHORS.txt COPYING.txt ChangeLog.txt README.md
|
%doc AUTHORS.txt ChangeLog.txt README.md
|
||||||
%{_bindir}/%{name}_completions.sh
|
%{_bindir}/%{name}_completions.sh
|
||||||
|
|
||||||
%files -n libgflags2
|
%files -n libgflags2
|
||||||
%defattr(-,root,root)
|
%license COPYING.txt
|
||||||
%doc COPYING.txt
|
|
||||||
%{_libdir}/libgflags.so.*
|
%{_libdir}/libgflags.so.*
|
||||||
%{_libdir}/libgflags_nothreads.so.*
|
%{_libdir}/libgflags_nothreads.so.*
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_includedir}/%{name}/
|
%{_includedir}/%{name}/
|
||||||
%{_libdir}/libgflags.so
|
%{_libdir}/libgflags.so
|
||||||
%{_libdir}/libgflags_nothreads.so
|
%{_libdir}/libgflags_nothreads.so
|
||||||
@ -113,7 +110,6 @@ ctest
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%files devel-static
|
%files devel-static
|
||||||
%defattr(-,root,root)
|
|
||||||
%{_libdir}/libgflags.a
|
%{_libdir}/libgflags.a
|
||||||
%{_libdir}/libgflags_nothreads.a
|
%{_libdir}/libgflags_nothreads.a
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user