File: libassa.spec.in

package info (click to toggle)
libassa 3.5.0-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 3,084 kB
  • ctags: 2,323
  • sloc: cpp: 15,641; sh: 8,704; makefile: 372; perl: 51
file content (152 lines) | stat: -rw-r--r-- 4,550 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
# -*- rpm-spec -*-
#===============================================================================
#
# ASSA library RPM spec file.
#
# RPM format: name-version-release.rpm
#
# $Id: libassa.spec.in,v 1.2 2007/05/14 19:19:50 vlg Exp $
#===============================================================================

Summary:    C++ network-oriented application framework 
Name:       @PACKAGE@
Version:    @VERSION@
Release:    0
License:    LGPL
Group:      System Environment/Libraries
URL:        http://libassa.sourceforge.net/
Source:     http://dl.sf.net/sourceforge/libassa/libassa-%{version}.tar.gz
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: doxygen

#===============================================================================
# libassa package 
#===============================================================================

%description
This package is a C++ framework for writing network-based server and
client applications. It is a non-threaded implementation of Adaptive 
Communication Environment design patterns such as Reactor, Connector, 
Acceptor and others.

#===============================================================================
# libassa-devel package 
#===============================================================================

%package    devel
Summary:    Headers for developing programs with @PACKAGE@ library
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}
Requires:   pkgconfig

%description devel
This package contains the headers that programmers will need to develop
applications which will use @PACKAGE@ Library.

#===============================================================================
# libassa-devel package 
#===============================================================================

%package    doc
Summary:    HTML formatted API documentation for @PACKAGE@ library.
Group:      Development/Libraries

%description doc
This package contains Doxygen-generated class reference of @PACKAGE@ Library.

#===============================================================================
# preparation section
#===============================================================================

%prep
%setup -q

#===============================================================================
# build section
#===============================================================================

%build
%configure \
    --disable-rpath      \
    --disable-static     \
    --enable-shared      \
    --disable-selftests  \
    --disable-examples

# Disable rpaths, because --disable-rpath is not supported yet.
sed -i 's|\(^hardcode_libdir_flag_spec=\).*|\1""|g' libtool
sed -i 's|\(^runpath_var=\)LD_RUN_PATH|\1DIE_RPATH_DIE|g' libtool

%{__make} %{?_smp_mflags}

#===============================================================================
# install section
#===============================================================================

%install
%{__rm} -rf %{buildroot}
make DESTDIR=%{buildroot} install

rm -rf __docdir ; mkdir __docdir
mv %{buildroot}%{_datadir}/doc/%{name}-%{version}/* __docdir

### Clean up buildroot
%{__rm} -f %{buildroot}%{_libdir}/*.la

%check
# FAIL: sighands.test
#make check

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, -)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*


%files  devel
%defattr(-, root, root, -)
%{_bindir}/*
%{_includedir}/assa-3.5/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

%files doc
%defattr(-, root, root, -)
%doc __docdir/*.html __docdir/html/


%changelog
* Mon Oct 16 2006 Michael Schwendt <mschwendt[AT]users.sf.net> - 3.4.2-3
- disable rpaths
- disable static libs
- build tests and add %%check section for them
- BR doxygen and fix inclusion of HTML files
- execute /sbin/ldconfig in scriptlets directly
- don't use %%makeinstall

* Thu Oct 12 2006 Vladislav Grinchenko <vlg[AT]users.sourceforge.net> - 3.4.2-0
- Overall makeup to adhere to the RPM packaging guidelines.

* Wed Jul 19 2006 Vladislav Grinchenko <vlg[AT]users.sourceforge.net>
- disabled tests and examples in configure step

* Sun Mar 20 2005 Vladislav Grinchenko <vlg[AT]users.sourceforge.net>
- add distribution tag

* Tue Mar  1 2005 Vladislav Grinchenko <vlg[AT]users.sourceforge.net>
- fix documentation installation error

* Sun Dec 12 2004 Vladislav Grinchenko <vlg[AT]users.sourceforge.net>
- fix postrun spelling error

* Tue Aug  6 2002 Vladislav Grinchenko <vladg@erols.com>
- first public release