Группа :: Система/Библиотеки
Пакет: cjose
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# %%name is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define name cjose
%define major 0
%define libname lib%{name}%{major}
BuildRequires: gcc
%define develname lib%{name}-devel
Name: cjose
Version: 0.6.1
Release: alt1_3
Summary: C library implementing the Javascript Object Signing and Encryption (JOSE)
Group: System/Libraries
License: MIT
URL: https://github.com/cisco/cjose
Source0: https://github.com/cisco/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Patch1: concatkdf.patch
BuildRequires: doxygen
BuildRequires: pkgconfig(check) >= 0.9.2
BuildRequires: pkgconfig(jansson) >= 2.3
BuildRequires: pkgconfig(openssl) >= 1.0.1h
Source44: import.info
%description
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
%package -n %{libname}
Summary: C library implementing the Javascript Object Signing and Encryption (JOSE)
Group: System/Libraries
%description -n %{libname}
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
%package -n %{develname}
Summary: Development files for cjose
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
This package contains development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%build
# Undo the effects of -Werror so deprecation warnings don't halt the build
CFLAGS="$CFLAGS -Wno-error"
%configure --disable-static
%make_build
%check
# testsuite fails on arm
%ifnarch %{arm}
make check || (cat test/test-suite.log; exit 1)
%endif
%install
%makeinstall_std
# we don't want these
find %{buildroot} -name '*.la' -delete
%files -n %{libname}
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*
%files -n %{develname}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/doc/%{name}
%changelog
…
Полный changelog можно просмотреть здесь
%define _localstatedir %{_var}
# %%name is ahead of its definition. Predefining for rpm 4.0 compatibility.
%define name cjose
%define major 0
%define libname lib%{name}%{major}
BuildRequires: gcc
%define develname lib%{name}-devel
Name: cjose
Version: 0.6.1
Release: alt1_3
Summary: C library implementing the Javascript Object Signing and Encryption (JOSE)
Group: System/Libraries
License: MIT
URL: https://github.com/cisco/cjose
Source0: https://github.com/cisco/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Patch1: concatkdf.patch
BuildRequires: doxygen
BuildRequires: pkgconfig(check) >= 0.9.2
BuildRequires: pkgconfig(jansson) >= 2.3
BuildRequires: pkgconfig(openssl) >= 1.0.1h
Source44: import.info
%description
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
%package -n %{libname}
Summary: C library implementing the Javascript Object Signing and Encryption (JOSE)
Group: System/Libraries
%description -n %{libname}
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
%package -n %{develname}
Summary: Development files for cjose
Group: Development/C
Requires: %{libname} = %{version}
Provides: %{name}-devel = %{version}-%{release}
%description -n %{develname}
cjose is a C library implementing the Javascript Object Signing
and Encryption (JOSE).
This package contains development files for %{name}.
%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%build
# Undo the effects of -Werror so deprecation warnings don't halt the build
CFLAGS="$CFLAGS -Wno-error"
%configure --disable-static
%make_build
%check
# testsuite fails on arm
%ifnarch %{arm}
make check || (cat test/test-suite.log; exit 1)
%endif
%install
%makeinstall_std
# we don't want these
find %{buildroot} -name '*.la' -delete
%files -n %{libname}
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*
%files -n %{develname}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/doc/%{name}
%changelog
…
Полный changelog можно просмотреть здесь