github.com/jlmucb/cloudproxy@v0.0.0-20170830161738-b5aa0b619bc4/src/third_party/gflags/packages/rpm/rpm.spec (about) 1 %define RELEASE 1 2 %define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE} 3 %define prefix /usr 4 5 Name: %NAME 6 Summary: A commandline flags library that allows for distributed flags 7 Version: %VERSION 8 Release: %rel 9 Group: Development/Libraries 10 URL: http://code.google.com/p/gflags 11 License: BSD 12 Vendor: Google Inc. and others 13 Packager: Google Inc. and others <google-gflags@googlegroups.com> 14 Source: http://%{NAME}.googlecode.com/files/%{NAME}-%{VERSION}.tar.gz 15 Distribution: Redhat 7 and above. 16 Buildroot: %{_tmppath}/%{name}-root 17 Prefix: %prefix 18 19 %description 20 The %name package contains a library that implements commandline flags 21 processing. As such it's a replacement for getopt(). It has increased 22 flexibility, including built-in support for C++ types like string, and 23 the ability to define flags in the source file in which they're used. 24 25 %package devel 26 Summary: A commandline flags library that allows for distributed flags 27 Group: Development/Libraries 28 Requires: %{NAME} = %{VERSION} 29 30 %description devel 31 The %name-devel package contains static and debug libraries and header 32 files for developing applications that use the %name package. 33 34 %changelog 35 * Thu Sep 10 2009 <opensource@google.com> 36 - Change from '%configure' to something like it, but without -m32 37 38 * Mon Apr 20 2009 <opensource@google.com> 39 - Change build rule to use '%configure' rather than './configure' 40 - Change install to use DESTDIR instead of prefix for make install. 41 - Use wildcards for doc/ and lib/ directories 42 - Use {_libdir}/{_includedir}/etc instead of {prefix}/lib, etc 43 44 * Tue Dec 13 2006 <opensource@google.com> 45 - First draft 46 47 %prep 48 %setup 49 50 %build 51 # I can't use '% configure', because it defines -m32 which breaks the 52 # build somehow on my system. But I do take as much from % configure 53 # (in /usr/lib/rpm/macros) as I can. 54 ./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --sysconfdir=%{_sysconfdir} --datadir=%{_datadir} --includedir=%{_includedir} --libdir=%{_libdir} --libexecdir=%{_libexecdir} --localstatedir=%{_localstatedir} --sharedstatedir=%{_sharedstatedir} --mandir=%{_mandir} --infodir=%{_infodir} 55 make 56 57 %install 58 rm -rf $RPM_BUILD_ROOT 59 make DESTDIR=$RPM_BUILD_ROOT install 60 61 %clean 62 rm -rf $RPM_BUILD_ROOT 63 64 %files 65 %defattr(-,root,root) 66 67 %docdir %{prefix}/share/doc/%{NAME}-%{VERSION} 68 %{prefix}/share/doc/%{NAME}-%{VERSION}/* 69 70 %{_libdir}/*.so.* 71 %{_bindir}/gflags_completions.sh 72 73 %files devel 74 %defattr(-,root,root) 75 76 %{_includedir}/gflags 77 %{_includedir}/google 78 %{_libdir}/*.a 79 %{_libdir}/*.la 80 %{_libdir}/*.so 81 %{_libdir}/pkgconfig/*.pc