Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 78d5fcccd0a490fec4d892bc62e6d757 > files > 2

kyotocabinet-1.2.76-3.mga3.src.rpm

%define	major 16
%define libname	%mklibname %{name} %{major}
%define develname %mklibname -d %{name}

%define doctarget %{_defaultdocdir}/%{name}-%{version}

Summary:	A lightweight database library
Name:		kyotocabinet
Version:	1.2.76
Release:	%mkrel 3
Group:		Databases
License:	GPLv3
URL:		http://fallabs.com/kyotocabinet/
Source0:	http://fallabs.com/%{name}/pkg/%{name}-%{version}.tar.gz
BuildRequires:	zlib-devel
Conflicts:	%{name}-api-doc < 1.2.76-3

%description
Kyoto Cabinet is a library of routines for managing a database. The database is
a simple data file containing records, and each record is a pair of a key and a
value.  Every key and value is an array of bytes with variable length. Both
binary data and character strings can be used as a key or a value. There is
neither a concept of tables nor of data types.

%package -n	%{libname}
Summary:	A lightweight database library
Group:		System/Libraries
Conflicts:	%{name} < 1.2.76-3

%description -n	%{libname}
Kyoto Cabinet is a library of routines for managing a database. The database is
a simple data file containing records, and each record is a pair of a key and a
value.  Every key and value is an array of bytes with variable length. Both
binary data and character strings can be used as a key or a value. There is
neither a concept of tables nor of data types.

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{version}
Requires:	%{libname} = %{version}
Obsoletes:	%{name}-devel < 1.2.76-3
Conflicts:	%{name} < 1.2.76-3

%description -n	%{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package	api-doc
Summary:	Development documentation for %{name}
Group:		Documentation
Conflicts:	%{name} < 1.2.76-3
BuildArch:	noarch

%description	api-doc
The %{name}-api-doc package contains API documentation for developing
applications that use %{name}.

%prep

%setup -q
sed -i -e 's/ -g0 -O2//' -e 's/ -O0//' configure*

%build
%configure2_5x \
    --disable-static \
    --disable-opt \
    --docdir=%{doctarget}

%make

#%%check <- takes forever...
#make check

%install

%makeinstall_std

rm -rf %{buildroot}%{_libdir}/*.*a

%files
%{_bindir}/*
%{_mandir}/man1/*

%files -n %{libname}
%doc COPYING ChangeLog README
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files api-doc
%{doctarget}


%changelog

* Sun Jan 20 2013 oden <oden> 1.2.76-3.mga3
+ Revision: 390043
- major overhaul, libifiction, etc

* Sat Jan 12 2013 umeabot <umeabot> 1.2.76-2.mga3
+ Revision: 356630
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sun Oct 21 2012 spuhler <spuhler> 1.2.76-1.mga3
+ Revision: 308611
- changed the groups
  Reverted back to make install DESTDIR=$RPM_BUILD_ROOT
  it will not build otherwise
- corrected Group
- mageified spec file
  first release
- imported package kyotocabinet


* Wed Oct 19 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-2
- Prevent -march=native build flag [735822], credit Ville Skyatta
  <ville.skyata@iki.fi>

* Mon Aug 31 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.70-1
- Update to latest upstream

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.31-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Jan 3 2011 Casey Dahlin <cjdahlin@ncsu.edu> - 1.2.31-2
- Correct files list for soname bump

* Mon Jan 3 2011 Casey Dahlin <cdahlin@redhat.com> - 1.2.31-1
- Update to latest upstream

* Mon Dec 13 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.29-1
- Update to latest upstream

* Fri Dec 10 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-2
- Separate out devel-doc package
- Make sure we own our documentation folder
- Kill rpath

* Wed Dec 8 2010 Casey Dahlin <cdahlin@redhat.com> - 1.2.27-1
- Initial packaging