58 lines
1.9 KiB
RPMSpec
58 lines
1.9 KiB
RPMSpec
Name: crossguid
|
|
Version: 0.0.20160315git
|
|
Release: 1mamba
|
|
Summary: A minimal, cross platform, C++ GUID library
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://github.com/graeme-hill/crossguid
|
|
## GITSOURCE https://github.com/graeme-hill/crossguid.git master
|
|
Source: https://github.com/graeme-hill/crossguid.git/master/crossguid-%{version}.tar.bz2
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
## AUTOBUILDREQ-END
|
|
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best native GUID/UUID generator on the given platform and had a generic class for parsing, stringifying, and comparing IDs.
|
|
|
|
%package -n lib%{name}-devel
|
|
Group: Development/Libraries
|
|
Summary: Development files for %{name}
|
|
|
|
%description -n lib%{name}-devel
|
|
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best native GUID/UUID generator on the given platform and had a generic class for parsing, stringifying, and comparing IDs.
|
|
This package contains libraries and header files for developing applications that use %{name}.
|
|
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
#sh ./linux.sh
|
|
|
|
g++ -c guid.cpp -o guid.o $CXXFLAGS -std=c++11 -DGUID_LIBUUID
|
|
ar rvs libcrossguid.a guid.o
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
install -D -m0755 libcrossguid.a %{buildroot}%{_libdir}/libcrossguid.a
|
|
install -D -m644 guid.h %{buildroot}%{_includedir}/guid.h
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files -n lib%{name}-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/guid.h
|
|
%{_libdir}/libcrossguid.a
|
|
%doc LICENSE README.md
|
|
|
|
%changelog
|
|
* Tue Mar 15 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.0.20160315git-1mamba
|
|
- package created using the webbuild interface
|