3 %bcond_without tests # build without tests
6 %define short_commit 8f399e8
7 %define commit_date 20150803
8 Summary: Lightweight cross platform C++ GUID/UUID library
10 # 0.2.2 is being prepated on "dev-0.2" branch
12 Release: 0.%{rel}.%{commit_date}
15 Source0: https://github.com/graeme-hill/crossguid/archive/%{short_commit}/%{name}-%{short_commit}.tar.gz
16 # Source0-md5: 696a6573286d6fdbfde18686aa9f6489
17 URL: https://github.com/graeme-hill/crossguid/
19 BuildRequires: libstdc++-devel
20 BuildRequires: libuuid-devel
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 CrossGuid is a minimal, cross platform, C++ GUID library. It uses the
25 best native GUID/UUID generator on the given platform and has a
26 generic class for parsing, stringifying, and comparing IDs.
29 Summary: Development files for %{name}
30 Group: Development/Libraries
31 Requires: %{name} = %{version}-%{release}
34 The %{name}-devel package contains libraries and header files for
35 developing applications that use %{name}.
41 cp -p %{SOURCE1} Makefile
46 LDFLAGS="%{rpmldflags}" \
47 CXXFLAGS="%{rpmcxxflags}"
52 LDFLAGS="%{rpmldflags}" \
53 CXXFLAGS="%{rpmcxxflags}"
58 rm -rf $RPM_BUILD_ROOT
61 INCLUDEDIR=%{_includedir} \
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
67 %post -p /sbin/ldconfig
68 %postun -p /sbin/ldconfig
71 %defattr(644,root,root,755)
72 %doc README.md LICENSE
73 %attr(755,root,root) %{_libdir}/libcrossguid.so.*.*.*
74 %ghost %{_libdir}/libcrossguid.so.0
77 %defattr(644,root,root,755)
79 %{_libdir}/libcrossguid.so