Group :: Desenvolvimento/C
RPM: yajl
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
# vim: set ft=spec : -*- rpm-spec -*-
Name: yajl
Version: 2.1.0
Release: alt1.1
Summary: Yet Another JSON Library
Group: Development/C
License: BSD
Url: http://github.com/lloyd/yajl
Requires: lib%name = %version-%release
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake
%description
Yet Another JSON Library (YAJL).
%package -n lib%name
Summary: Yet Another JSON Library
Group: Development/C
%description -n lib%name
Yet Another JSON Library (YAJL).
%package -n lib%name-devel
Summary: Yet Another JSON Library (development headers)
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
Development headers for Yet Another JSON Library (YAJL).
%prep
%setup
%patch -p1
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -p %buildroot%_pkgconfigdir
mv %buildroot%_datadir/pkgconfig/*.pc %buildroot%_pkgconfigdir/
%check
%cmake_build --target test
%files
%doc README TODO
%_bindir/json_reformat
%_bindir/json_verify
%files -n lib%name
%_libdir/libyajl.so.*
%files -n lib%name-devel
%_includedir/yajl
%_libdir/libyajl.so
%_pkgconfigdir/*.pc
%changelog
…
Todas as alterações você pod ver aqui
Name: yajl
Version: 2.1.0
Release: alt1.1
Summary: Yet Another JSON Library
Group: Development/C
License: BSD
Url: http://github.com/lloyd/yajl
Requires: lib%name = %version-%release
Source: %name-%version.tar
Patch: %name-%version-%release.patch
BuildRequires(pre): rpm-macros-cmake
BuildRequires: cmake
%description
Yet Another JSON Library (YAJL).
%package -n lib%name
Summary: Yet Another JSON Library
Group: Development/C
%description -n lib%name
Yet Another JSON Library (YAJL).
%package -n lib%name-devel
Summary: Yet Another JSON Library (development headers)
Group: Development/C
Requires: lib%name = %version-%release
%description -n lib%name-devel
Development headers for Yet Another JSON Library (YAJL).
%prep
%setup
%patch -p1
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -p %buildroot%_pkgconfigdir
mv %buildroot%_datadir/pkgconfig/*.pc %buildroot%_pkgconfigdir/
%check
%cmake_build --target test
%files
%doc README TODO
%_bindir/json_reformat
%_bindir/json_verify
%files -n lib%name
%_libdir/libyajl.so.*
%files -n lib%name-devel
%_includedir/yajl
%_libdir/libyajl.so
%_pkgconfigdir/*.pc
%changelog
…
Todas as alterações você pod ver aqui