Change-Id: I17933299281795418bfc3e7f5d4b940af81b4424
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4307
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,63 @@ |
| 0 |
+Summary: Log for C++ |
|
| 1 |
+Name: log4cpp |
|
| 2 |
+Version: 1.1.1 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: LGPL |
|
| 5 |
+Group: Development/Libraries |
|
| 6 |
+Vendor: VMware, Inc. |
|
| 7 |
+Distribution: Photon |
|
| 8 |
+Url: http://log4cpp.sourceforge.net/ |
|
| 9 |
+Source: ftp://download.sourceforge.net/pub/sourceforge/log4cpp/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 log4cpp=23aa5bd7d6f79992c92bad3e1c6d64a34f8fcf68 |
|
| 11 |
+ |
|
| 12 |
+%description |
|
| 13 |
+Log for C++ is a library of classes for flexible logging to files, syslog, |
|
| 14 |
+and other destinations. It is modeled after the Log for Java library and |
|
| 15 |
+stays as close to its API as is reasonable. |
|
| 16 |
+ |
|
| 17 |
+%package devel |
|
| 18 |
+Summary: development tools for Log for C++ |
|
| 19 |
+Group: Development/Libraries |
|
| 20 |
+Requires: %{name} = %{version}-%{release}
|
|
| 21 |
+ |
|
| 22 |
+%description devel |
|
| 23 |
+The %name-devel package contains the static libraries and header files |
|
| 24 |
+needed for development with %name. |
|
| 25 |
+ |
|
| 26 |
+ |
|
| 27 |
+%prep |
|
| 28 |
+%{__rm} -rf $RPM_BUILD_ROOT
|
|
| 29 |
+ |
|
| 30 |
+%setup -q -n log4cpp |
|
| 31 |
+CC=%{__cc} CXX=%{__cxx} ./configure --prefix=%{_prefix}
|
|
| 32 |
+ |
|
| 33 |
+%build |
|
| 34 |
+%{__make}
|
|
| 35 |
+ |
|
| 36 |
+%install |
|
| 37 |
+%{__rm} -rf $RPM_BUILD_ROOT
|
|
| 38 |
+make DESTDIR=%{buildroot} install
|
|
| 39 |
+ |
|
| 40 |
+%clean |
|
| 41 |
+%{__rm} -rf $RPM_BUILD_ROOT
|
|
| 42 |
+ |
|
| 43 |
+%post -p /sbin/ldconfig |
|
| 44 |
+ |
|
| 45 |
+%postun -p /sbin/ldconfig |
|
| 46 |
+ |
|
| 47 |
+%files |
|
| 48 |
+%defattr(-,root,root) |
|
| 49 |
+%_prefix/lib/lib*.so.* |
|
| 50 |
+ |
|
| 51 |
+%files devel |
|
| 52 |
+%defattr(-,root,root) |
|
| 53 |
+%_prefix/include/* |
|
| 54 |
+%_prefix/bin/log4cpp-config |
|
| 55 |
+%_prefix/lib/lib*.so |
|
| 56 |
+%_prefix/lib/*.*a |
|
| 57 |
+%_prefix/lib/pkgconfig/log4cpp.pc |
|
| 58 |
+%_prefix/share/aclocal/*.m4 |
|
| 59 |
+ |
|
| 60 |
+%changelog |
|
| 61 |
+* Mon Oct 23 2017 Benson Kwok <bkwok@vmware.com> 1.1.1-1 |
|
| 62 |
+- Initial build. First version |
|
| 0 | 63 |
\ No newline at end of file |