/[smecontribs]/rpms/ccnet/contribs9/ccnet.spec
ViewVC logotype

Diff of /rpms/ccnet/contribs9/ccnet.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by jpp, Tue Feb 20 03:59:27 2018 UTC Revision 1.2 by jpp, Tue Feb 27 03:38:27 2018 UTC
# Line 1  Line 1 
1  %global _hardened_build 1  %define major           0
2  %define release 2  %define libname         lib%{name}
3    %define develname       %{name}-devel
4  Name:           ccnet  %define release 3
5  Version:        6.1.3  Name:           ccnet
6  Release:        %{release}%{?dist}  Version:        5.1.3
7  Summary:        A framework for writing networked applications in C  Release:        %{release}%{dist}
8    Summary:        Networking library for Seafile
9  License:        GPLv3  License:        GPLv3+
10  URL:            https://github.com/haiwen/%{name}  Group:          Networking/File transfer
11  Source0:        https://github.com/haiwen/%{name}/archive/v%{version}.tar.gz  URL:            https://github.com/haiwen/ccnet
12    Source0:        https://github.com/haiwen/ccnet/archive/v%{version}/%{name}-%{version}.tar.gz
13  BuildRequires:  autoconf  #Source0:       https://github.com/haiwen/ccnet/archive/v%{version}/v%{version}.tar.gz
14  BuildRequires:  automake  BuildRequires:  pkgconfig(glib-2.0)
15  BuildRequires:  libtool  BuildRequires:  pkgconfig(jansson)
16  BuildRequires:  glib2-devel  #BuildRequires: pkgconfig(sqlite3)
17  BuildRequires:  sqlite-devel  BuildRequires:  sqlite-devel
18  BuildRequires:  openssl-devel  BuildRequires:  sqlite
19  BuildRequires:  libevent2-devel  BuildRequires:  pkgconfig(openssl)
20  BuildRequires:  libuuid-devel  BuildRequires:  pkgconfig(libevent)
21  BuildRequires:  libsearpc-devel  BuildRequires:  pkgconfig(uuid) >= 2.0
22  BuildRequires:  libzdb-devel  BuildRequires:  pkgconfig(libsearpc)
23  BuildRequires:  python2-devel  #BuildRequires: pkgconfig(python2)
24  BuildRequires:  vala  BuildRequires: python-devel
25    #BuildRequires: vala >= 0.26
26    BuildRequires: vala
27    Buildrequires: autoconf
28    Buildrequires: automake
29    Buildrequires: libtool
30    # server requirements
31    BuildRequires:  pkgconfig(zdb)
32    
33    Requires:       pythonegg(2)(ccnet) = %{version}-%{release}
34    
35  %description  %description
36  Ccnet is a framework for writing networked applications in C. It provides the  Ccnet is a framework for writing networked applications in C.
37  following basic services:  
38    #----------------------------------------------------
39    
40  * Peer identification  %package        server
41  * Connection Management  Summary:        Ccnet server
42  * Service invocation  Group:          Networking/File transfer
43  * Message sending  Requires:       pythonegg(2)(ccnet) = %{version}-%{release}
44    
45  In ccnet network, there are two types of nodes, i.e., client and server.  %description    server
46  Server has the following functions:  Ccnet is a framework for writing networked applications in C.
47    This package contains the server part for %{name}.
48    
49  * User management  #----------------------------------------------------
 * Group management  
 * Cluster management  
50    
51    %package -n     %{libname}
52    Summary:        Library for %{name}
53    Group:          System/Libraries
54    
55  %package        devel  %description -n %{libname}
56  Summary:        Development files for %{name}  Ccnet is a framework for writing networked applications in C.
57  Requires:       %{name}%{?_isa} = %{version}-%{release}  This package contains library files for %{name}.
 Requires:       glib2-devel  
 Requires:       libevent2-devel  
 Requires:       libsearpc-devel  
58    
59    #----------------------------------------------------
60    
61  %description    devel  %package -n     %{develname}
62  The %{name}-devel package contains libraries and header files for  Summary:        Development files for %{name}
63    Group:          Development/C
64    Requires:       %{libname} = %{version}-%{release}
65    Provides:       %{name}-devel = %{version}-%{release}
66    Provides:       lib%{name}-devel = %{version}-%{release}
67    
68    %description -n %{develname}
69    The %{develname} package contains libraries and header files for
70  developing applications that use %{name}.  developing applications that use %{name}.
71    
72    #----------------------------------------------------
73    
74    %package -n     python-%{name}
75    Summary:        Python 2 bindings for %{name}
76    Group:          Development/Python
77    BuildArch:      noarch
78    Provides:       pythonegg(2)(ccnet) = %{version}-%{release}
79    
80    %description -n python-%{name}
81    Ccnet is a framework for writing networked applications in C.
82    This package contains the python 2 bindings for %{name}.
83    
84    #----------------------------------------------------
85    
86  %prep  %prep
87  %setup -qn %{name}-%{version}  %setup -q
88    
89  sed -i -e /\(DESTDIR\)/d libccnet.pc.in  sed -i -e /\(DESTDIR\)/d libccnet.pc.in
90    
91    NOCONFIGURE=1 ./autogen.sh
92    
93  %build  %build
94  ./autogen.sh --enable-server --enable-client  #%configure2_5x \
95  %configure --disable-static --disable-compile-demo  %configure \
96  sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool          --enable-server \
97  %{__make} %{?_smp_mflags} CFLAGS="%{optflags}"          --disable-static \
98            --disable-compile-demo
99    #%make_build
100    make
101    
102  %install  %install
103    #%make_install
104    #make install
105  %{__make} install DESTDIR=%{buildroot}  %{__make} install DESTDIR=%{buildroot}
 find %{buildroot} -name '*.la' -exec rm -f {} ';'  
   
   
 %check  
 %{__make} check  
   
   
 %post -p /sbin/ldconfig  
   
   
 %postun -p /sbin/ldconfig  
106    
107    # we don't want these
108    find %{buildroot} -name '*.la' -delete
109    
110  %files  %files
111  %doc HACKING README.markdown  %doc HACKING README.markdown
112  %doc LICENSE.txt  #%doc COPYRIGHT
113  %{_libdir}/libccnet.so.*  %{_bindir}/%{name}
114  %{_bindir}/%{name}*  %{_bindir}/%{name}-init
115  %{python_sitearch}/%{name}  %{_bindir}/%{name}-tool
116    
117    %files server
118    %doc HACKING README.markdown
119    #%doc COPYRIGHT
120    %{_bindir}/%{name}-server
121    %{_bindir}/%{name}-servtool
122    
123    %files -n %{libname}
124    %{_libdir}/lib%{name}.so.%{major}
125    %{_libdir}/lib%{name}.so.%{major}.*
126    
127  %files devel  %files -n %{develname}
128  %doc LICENSE.txt  %doc HACKING README.markdown
129  %{_includedir}/*  %{_includedir}/*
130  %{_libdir}/libccnet.so  %{_libdir}/lib%{name}.so
131  %{_libdir}/pkgconfig/lib%{name}.pc  %{_libdir}/pkgconfig/lib%{name}.pc
132    
133    %files -n python-%{name}
134    %doc HACKING README.markdown
135    %{python_sitearch}/%{name}/
136    
137    
138  %changelog  %changelog
139  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 6.1.3-2  * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-3
140    - rebuild with lib and server packages
141    
142    * Mon Feb 19 2018 Jean-Philippe Pialasse <tests@pialasse.com> - 5.1.3-2
143  - first import for SME Server  - first import for SME Server
144  - adapt spec file for buildsystem  - adapt spec file for buildsystem
145    
146  * Mon Nov 06 2017 Julien Enselme <jujens@jujens.eu> - 6.1.3-1  * Tue Nov 01 2016 daviddavid <daviddavid> 5.1.3-1.mga5
147  - Update to 6.1.3  + Revision: 1064478
148    - new version: 5.1.3
149  * Thu Aug 10 2017 Julien Enselme <jujens@jujens.eu> - 6.1.0-1  
150  - Update to 6.1.0    + neoclust <neoclust>
151        - Use version 5.1.2 in backports
152  * Tue Mar 07 2017 Julien Enselme <jujens@jujens.eu> - 6.0.4-1      - Add to backports
153  - Update to 6.0.4  
154    * Thu Jun 30 2016 daviddavid <daviddavid> 5.1.3-1.mga6
155  * Sun Oct 23 2016 Julien Enselme <jujens@jujens.eu> - 6.0.0-1  + Revision: 1038171
156  - Update to 6.0.0  - new version: 5.1.3
157  - Unretire package  
158    * Thu May 12 2016 daviddavid <daviddavid> 5.1.1-2.mga6
159  * Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.1.2-2  + Revision: 1014278
160  - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages  - add the server part of ccnet
161    
162  * Sat May 14 2016 Julien Enselme <jujens@jujens.eu> - 5.1.2-1  * Fri May 06 2016 daviddavid <daviddavid> 5.1.1-1.mga6
163  - Update to 5.1.2  + Revision: 1009881
164    - initial package ccnet
 * Tue Feb 02 2016 Nikos Roussos <comzeradd@fedoraproject.org> - 5.0.5-1  
 - Update to 5.0.5  
   
 * Thu Dec 03 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 5.0.0-1  
 - Update to 5.0.0  
 - Add license to devel subpackage  
 - Add optflags  
 - Add libzdb-devel requirement  
 - Add python2-devel requirement  
 - unused-direct-shlib-dependency  
   
 * Wed Sep 16 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 4.3.4-1  
 - Update to 4.3.4  
   
 * Sat Apr 11 2015 Nikos Roussos <comzeradd@fedoraproject.org> - 4.1.4-1  
 - Update to 4.1.4  
 - Hardened build  
   
 * Wed Nov 05 2014 Nikos Roussos <comzeradd@fedoraproject.org> - 3.1.8-1  
 - Update to 3.1.8  
165    
 * Tue Aug 12 2014 Nikos Roussos <comzeradd@fedoraproject.org> - 3.1.4-1  
 - Initial version of the package  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed