blob: a863294bca96077d34269c81e9d536723031c5a3 [file] [log] [blame]
Alexandre Lisionddd731e2014-01-31 11:50:08 -05001# Copyright (c) 2008, 2009 David Sugar, Tycho Softworks.
2# This file is free software; as a special exception the author gives
3# unlimited permission to copy and/or distribute it, with or without
4# modifications, as long as this notice is preserved.
5#
6# This program is distributed in the hope that it will be useful,
7# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
8# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
9# PARTICULAR PURPOSE.
10
11Name: ucommon
12Summary: Portable C++ runtime for threads and sockets
13Version: @VERSION@
14Release: 0%{?dist}
15License: LGPLv3+
16URL: http://www.gnu.org/software/commoncpp
17Source0: http://www.gnutelephony.org/dist/tarballs/ucommon-%{version}.tar.gz
18BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
19BuildRequires: doxygen graphviz-gd openssl-devel
20Group: System Environment/Libraries
21Summary: Runtime library for portable C++ threading and sockets
22
23%description
24GNU uCommon C++ is a lightweight library to facilitate using C++ design
25patterns even for very deeply embedded applications, such as for systems using
26uClibc along with POSIX threading support. For this reason, uCommon disables
27language features that consume memory or introduce runtime overhead. uCommon
28introduces some design patterns from Objective-C, such as reference counted
29objects, memory pools, and smart pointers. uCommon introduces some new
30concepts for handling of thread locking and synchronization.
31
32%package bin
33Requires: %{name} = %{version}-%{release}
34Group: Applications/System
35Summary: ucommon system and support applications.
36
37%package devel
38Requires: %{name} = %{version}-%{release}
39Requires: %{name}-bin = %{version}-%{release}
40Requires: openssl-devel
41Requires: pkgconfig
42Group: Development/Libraries
43Summary: Headers for building ucommon applications
44
45%package doc
46Group: Documentation
47Summary: Generated class documentation for ucommon
48
49%description bin
50This is a collection of command line tools that use various aspects of the
51ucommon library. Some may be needed to prepare files or for development of
52applications.
53
54%description devel
55This package provides header and support files needed for building
56applications that use the uCommon library and frameworks.
57
58%description doc
59Generated class documentation for GNU uCommon library from header files,
60html browsable.
61
62%prep
63%setup -q
64%build
65
66%configure --disable-static
67%{__make} %{?_smp_mflags}
68%{__rm} -rf doc/html
69%{__make} doxy
70
71%install
72%{__rm} -rf %{buildroot}
73%{__make} DESTDIR=%{buildroot} INSTALL="install -p" install
74%{__chmod} 0755 %{buildroot}%{_bindir}/ucommon-config
75%{__chmod} 0755 %{buildroot}%{_bindir}/commoncpp-config
76%{__rm} %{buildroot}%{_libdir}/*.la
77
78%clean
79%{__rm} -rf %{buildroot}
80
81%files
82%defattr(-,root,root,-)
83%doc AUTHORS README COPYING COPYING.LESSER COPYRIGHT NEWS SUPPORT ChangeLog
84%{_libdir}/libucommon.so.*
85%{_libdir}/libusecure.so.*
86%{_libdir}/libcommoncpp.so.*
87
88%files bin
89%defattr(-,root,root,-)
90%{_bindir}/args
91%{_bindir}/car
92%{_bindir}/pdetach
93%{_bindir}/scrub-files
94%{_bindir}/mdsum
95%{_bindir}/sockaddr
96%{_bindir}/zerofill
97%{_mandir}/man1/args.*
98%{_mandir}/man1/car.*
99%{_mandir}/man1/pdetach.*
100%{_mandir}/man1/scrub-files.*
101%{_mandir}/man1/mdsum.*
102%{_mandir}/man1/sockaddr.*
103%{_mandir}/man1/zerofill.*
104
105%files devel
106%defattr(-,root,root,-)
107%{_libdir}/*.so
108%{_includedir}/ucommon/
109%{_includedir}/commoncpp/
110%{_libdir}/pkgconfig/*.pc
111%{_bindir}/ucommon-config
112%{_bindir}/commoncpp-config
113%{_mandir}/man1/ucommon-config.*
114%{_mandir}/man1/commoncpp-config.*
115
116%files doc
117%defattr(-,root,root,-)
118%doc doc/html/*
119
120%post -p /sbin/ldconfig
121
122%postun -p /sbin/ldconfig
123
124%changelog
125* Sat Sep 18 2010 - David Sugar <dyfet@gnutelephony.org> - 3.4.0-0
126- simplified packaging and better runtime focus.
127- ccscript moved to bayonne, ccaudio detached.
128
129* Sun Aug 01 2010 - David Sugar <dyfet@gnutelephony.org> - 3.3.0-0
130- internationalization bindings with gnu gettext support.
131- reorganized utils into ucommon-bin subpackage.
132
133* Fri Jun 04 2010 - David Sugar <dyfet@gnutelephony.org> - 3.0.0-0
134- merged ccscript and ccaudio with ucommon to create single framework.
135
136* Sun Jul 19 2009 - David Sugar <dyfet@gnutelephony.org> - 2.0.6-1
137- fixed ucommon-config upstream.
138
139* Tue May 05 2009 - David Sugar <dyfet@gnutelephony.org> - 2.0.5-4
140- removed static libraries, fixed other build issues (#498736)
141
142* Sun May 03 2009 - David Sugar <dyfet@gnutelephony.org> - 2.0.5-3
143- spec file prepared for redhat/fedora (#498736)
144