source: soft/build_system/build_system/repsys/tags/V1_5_4_1mdk/repsys.spec @ 1

Last change on this file since 1 was 1, checked in by fasma, 12 years ago

Initial Import from Mandriva's soft revision 224062 and package revision 45733

File size: 4.7 KB
Line 
1%define py_ver %(python -c "import sys; v=sys.version_info[:2]; print '%%d.%%d'%%v" 2>/dev/null || echo PYTHON-NOT-FOUND)
2%define maxver %(python -c "import sys; a,b=sys.version_info[:2]; print%'%%d.%%d'%%(a,b+1)" 2>/dev/null || echo PYTHON-NOT-FOUND)
3%define minver %py_ver
4%define py_prefix  %(python -c "import sys; print sys.prefix" 2>/dev/null || echo PYTHON-NOT-FOUND)
5%define py_libdir  %{py_prefix}/%{_lib}/python%{py_ver}
6%define py_sitedir %{py_libdir}/site-packages
7
8%define repsys_version 1.5.4
9
10Name: repsys
11Version: 1.5.4
12Release: 1mdk
13Summary: Tools for Mandriva Linux repository access and management
14Group: Development/Other
15Source: %{name}-%{repsys_version}.tar.bz2
16License: GPL
17URL: http://qa.mandriva.com/twiki/bin/view/Main/RepositorySystem
18Prefix: %{_prefix}
19BuildArch: noarch
20Buildrequires: python-devel
21BuildRoot: %{_tmppath}/%{name}-%{version}-root
22BuildRequires: python
23BuildRequires: python-devel
24
25%description
26Tools for Mandriva Linux repository access and management.
27
28%prep
29%setup -q -n %{name}-%{repsys_version}
30
31%build
32python setup.py build
33
34%install
35rm -rf %{buildroot}
36
37python setup.py install --root=%{buildroot}
38# Using compile inline since niemeyer's python macros still not available on mdk rpm macros
39find %{buildroot}%{py_sitedir} -name '*.pyc' -exec rm -f {} \;
40python -c "import sys, os, compileall; br='%{buildroot}'; compileall.compile_dir(sys.argv[1], ddir=br and
41(sys.argv[1][len(os.path.abspath(br)):]+'/') or None)" %{buildroot}%{py_sitedir}
42
43mkdir -p %{buildroot}%{_sysconfdir}
44mkdir -p %{buildroot}%{_datadir}/repsys/
45mkdir -p %{buildroot}%{_bindir}/
46install -m 0644 repsys.conf %{buildroot}%{_sysconfdir}/repsys.conf
47install -m 0755 rebrand-mdk %{buildroot}%{_datadir}/repsys/rebrand-mdk
48install -m 0755 getsrpm-mdk %{buildroot}%{_bindir}/getsrpm-mdk
49install -m 0755 create-srpm %{buildroot}%{_datadir}/repsys/create-srpm
50
51%clean
52rm -rf %{buildroot}
53
54%files
55%defattr(0644,root,root,0755)
56%doc repsys.conf
57%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/repsys.conf
58%defattr(0755,root,root,0755)
59%{_bindir}/repsys
60%{_bindir}/getsrpm-mdk
61%{_datadir}/repsys/rebrand-mdk
62%{_datadir}/repsys/create-srpm
63%{py_sitedir}/RepSys
64
65# MAKE THE CHANGES IN CVS: NO PATCH OR SOURCE ALLOWED
66
67%changelog
68* Wed Dec  7 2005 Frederic Lepied <flepied@mandriva.com> 1.5.4-1mdk
69- switch to cvs
70
71* Fri Oct 21 2005 Frederic Lepied <flepied@mandriva.com> 1.5.3.1-4.1mdk
72- add svn+ssh access method
73
74* Fri Sep 30 2005 Andreas Hasenack <andreas@mandriva.com>
75+ 2005-09-30 18:25:48 (979)
76- releasing 1.5.3.1-4mdk
77
78* Fri Sep 30 2005 Andreas Hasenack <andreas@mandriva.com>
79+ 2005-09-30 18:10:53 (978)
80- fixed author's email
81- fixed mandriva logo url
82
83* Fri Sep 30 2005 Andreas Hasenack <andreas@mandriva.com>
84+ 2005-09-30 17:41:45 (977)
85- fixed mime-type of the repsys-mdk.patch
86
87* Tue Jul 26 2005 Helio Chissini de Castro <helio@mandriva.com>
88+ 2005-07-26 04:48:46 (441)
89- Changes on behalf of Oden Eriksson
90- update S1
91- lib64 fixes
92- this is no noarch package
93- rpmlint fixes
94
95* Wed Jun 29 2005 Helio Chissini de Castro <helio@mandriva.com>
96+ 2005-06-29 04:50:47 (257)
97- Upload new spec
98
99* Wed Jun 29 2005 Helio Chissini de Castro <helio@mandriva.com>
100+ 2005-06-29 04:44:48 (256)
101- Fixed ugly type on url type svn+ssh
102
103* Tue Jun 28 2005 Helio Chissini de Castro <helio@mandriva.com>
104+ 2005-06-28 07:22:47 (248)
105- Update repsys to match new changelog requirements ( just release keep unchanged )
106- Update getsrpm-mdk to genrate srpm with changelog
107- Fixed regexp for unicode/color chars in terminal ( thanks to aurelio )
108
109* Tue Jun 14 2005 Helio Chissini de Castro <helio@mandriva.com>
110+ 2005-06-14 05:04:31 (206)
111- Start to fix builds on x86_64 archs.
112
113* Wed Jun 08 2005 Helio Chissini de Castro <helio@mandriva.com>
114+ 2005-06-08 04:48:55 (151)
115- Fixed patch for get real changelog and version
116
117* Sun May 29 2005 Helio Chissini de Castro <helio@mandriva.com>
118+ 2005-05-29 13:08:25 (147)
119- Added changelog patch to match mdk style
120
121* Fri May 27 2005 Helio Chissini de Castro <helio@mandriva.com>
122+ 2005-05-27 10:26:17 (146)
123- Added rebrand script for match release number with svn
124- Added wrapper script for get srpms ready for submit to cluster compilation
125
126* Fri May 27 2005 Helio Chissini de Castro <helio@mandriva.com>
127+ 2005-05-27 09:46:09 (145)
128- Added suggested changes by neoclust
129
130* Fri May 27 2005 Helio Chissini de Castro <helio@mandriva.com>
131+ 2005-05-27 04:23:34 (144)
132- Added initial users on default
133
134* Wed May 25 2005 Helio Chissini de Castro <helio@mandriva.com>
135+ 2005-05-25 11:10:18 (143)
136- Added a initial changelog until repsys submit is working
137
138* Wed May 25 2005 Helio Chissini de Castro <helio@mandriva.com>
139+ 2005-05-25 10:28:57 (142)
140- No bziped patches
141
142* Wed May 25 2005 Helio Chissini de Castro <helio@mandriva.com>
143+ 2005-05-25 10:22:47 (141)
144- Initial import of repsys package
Note: See TracBrowser for help on using the repository browser.