forked from scality/Droplet
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OBS spec file and install includes not in subdir.
- Loading branch information
1 parent
e8e35bd
commit 4e3f45c
Showing
3 changed files
with
90 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
%define name libdroplet | ||
%define release 1 | ||
%define version 1 | ||
|
||
# do not optimize during compile for debugging | ||
%define noopt 1 | ||
|
||
|
||
Summary: Scality Droplet library | ||
License: BSD | ||
Name: %{name} | ||
Version: 3.0.git.1390558635 | ||
Release: 0%{release} | ||
Source: %{name}-%{version}.tar.bz2 | ||
Group: Development/Tools | ||
BuildRequires: libxml2-devel, libjson-devel | ||
BuildRequires: automake, autoconf, libtool, pkg-config, check-devel, openssl-devel, bison, attr-devel | ||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | ||
|
||
BuildRequires: -post-build-checks | ||
|
||
%description | ||
Library to help the transition to object based cloud storage by providing a | ||
structured API to simplify application developers job and address key user | ||
concerns. | ||
|
||
%package devel | ||
Group: Development/Libraries | ||
Summary: Developer tools for the Scality Droplet library | ||
Requires: libdroplet = %{version}-%{release} | ||
Requires: libxml2-devel | ||
|
||
%description devel | ||
Header files needed to develop programs that link against the Droplet library. | ||
|
||
%prep | ||
%setup -q | ||
#%patch1 -p1 | ||
|
||
aclocal -I m4 | ||
autoreconf -i -f | ||
|
||
%build | ||
|
||
%if %{noopt} | ||
export CFLAGS="-g" | ||
export CXXFLAGS="-g" | ||
export GCJFLAGS="-g" | ||
%endif | ||
|
||
%configure | ||
|
||
make %{?_smp_mflags} | ||
|
||
%install | ||
rm -rf %{buildroot} | ||
make install DESTDIR=$RPM_BUILD_ROOT | ||
/sbin/ldconfig -N -n %{buildroot}%{_libdir} | ||
|
||
%clean | ||
rm -rf %{buildroot} | ||
|
||
%post -p /sbin/ldconfig | ||
|
||
%postun -p /sbin/ldconfig | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%{_libdir}/libdroplet.so.* | ||
|
||
%files devel | ||
%defattr(-,root,root,-) | ||
%{_includedir}/droplet.h | ||
%{_includedir}/dropletp.h | ||
%{_includedir}/droplet | ||
%{_libdir}/libdroplet.so | ||
%{_libdir}/libdroplet.a | ||
%{_libdir}/libdroplet.la | ||
%{_libdir}/pkgconfig/droplet-3.0.pc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters