You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hiredis/hiredis.spec

135 lines
4.4 KiB

14 years ago
Name: hiredis
10 years ago
Version: 0.12.1
10 years ago
Release: 2%{?dist}
11 years ago
Summary: Minimalistic C client library for Redis
14 years ago
License: BSD
11 years ago
URL: https://github.com/redis/hiredis
10 years ago
Source0: https://github.com/redis/hiredis/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
10 years ago
Patch0: https://github.com/redis/hiredis/pull/302.patch
14 years ago
%description
Hiredis is a minimalistic C client library for the Redis database.
11 years ago
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
14 years ago
11 years ago
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
14 years ago
%prep
10 years ago
%setup -q
%patch0 -p1
14 years ago
%build
10 years ago
%make_build PREFIX="%{_prefix}" INSTALL_LIBRARY_PATH="%{_libdir}" \
OPTIMIZATION="%{optflags}" LDFLAGS="%{?__global_ldflags}"
14 years ago
%install
10 years ago
%make_install PREFIX="%{_prefix}" INSTALL_LIBRARY_PATH="%{_libdir}"
14 years ago
10 years ago
# Generate pkgconfig file manually. It's already mentioned in the upstream
# makefile but make install doesn't do and modification needed for %%_libdir.
10 years ago
#mkdir -p %{buildroot}%{_libdir}/pkgconfig/
#cat >%{buildroot}%{_libdir}/pkgconfig/%{name}.pc<<EOF
10 years ago
#%{name} pkg-config source file
10 years ago
#
#prefix=%{_prefix}
#exec_prefix=%{_prefix}
#libdir=%{_libdir}
#includedir=%{_includedir}
#
#Name: %{name}
#Description: Minimalistic C client library for the Redis database
#Version: %{version}
#Libs: -L\${libdir} -lhiredis
#Cflags: -I\${includedir} -D_FILE_OFFSET_BITS=64
#EOF
14 years ago
11 years ago
find %{buildroot} -name '*.a' -delete -print
14 years ago
10 years ago
%check
10 years ago
# Firewall + Koji isolated environment will cause some tests fail to pass
10 years ago
make test || true
14 years ago
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
13 years ago
%doc COPYING
10 years ago
%{_libdir}/libhiredis.so.0.12
14 years ago
%{_libdir}/libhiredis.so.0
%files devel
10 years ago
%doc CHANGELOG.md README.md
14 years ago
%{_includedir}/%{name}/
%{_libdir}/libhiredis.so
10 years ago
%{_libdir}/pkgconfig/hiredis.pc
14 years ago
%changelog
10 years ago
* Wed Feb 04 2015 Petr Machata <pmachata@redhat.com> - 0.12.1-2
- Bump for rebuild.
10 years ago
* Fri Jan 30 2015 Christopher Meng <rpm@cicku.me> - 0.12.1-1
10 years ago
- Update to 0.12.1
* Fri Jan 30 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.12.0-4
- Again build for f22-boost
10 years ago
* Fri Jan 30 2015 Mamoru TASAKA <mtasaka@fedoraproject.org> - 0.12.0-3
- Once build on f22
* Tue Jan 27 2015 David Tardon <dtardon@redhat.com> - 0.12.0-2
- install all headers
10 years ago
* Fri Jan 23 2015 Christopher Meng <rpm@cicku.me> - 0.12.0-1
- Update to 0.12.0
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
12 years ago
* Sat Sep 29 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.11.0-1
- Updated to 0.11.0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
* Fri Jan 20 2012 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.10.1-3
- Removed Requires redis.
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
13 years ago
* Fri Dec 30 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.10.1-1
- Updated to upstream 0.10.1-28-gd5d8843.
14 years ago
* Mon May 16 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.10.0-3
- Removed INSTALL_LIB from install target as we use INSTALL_LIBRARY_PATH.
- Use 'client library' in Summary.
* Wed May 11 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.10.0-2
- Updated devel sub-package description.
- Added optimization flags.
- Remove manual installation of shared objects.
- Use upstream .tar.gz sources.
* Tue May 10 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.10.0-1.gitdf203bc328
- Updated to upstream gitdf203bc328.
- Added TODO to the files.
- Updated to use libhiredis.so.0, libhiredis.so.0.10.
* Fri Apr 29 2011 Shakthi Kannan <shakthimaan [AT] fedoraproject dot org> 0.9.2-1
14 years ago
- First release.