- Timestamp:
- Oct 21, 2011, 1:45:07 PM (13 years ago)
- Location:
- dassmodus/trunk/dassmodus/packaging
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
dassmodus/trunk/dassmodus/packaging/create_rpm_sources.sh
r964 r973 9 9 fi 10 10 11 for PACK in dassmodus nosferatu; do12 11 13 MODULENAME= $PACK12 MODULENAME=nosferatu 14 13 VERSION=$1 15 14 … … 17 16 cp -av ../${MODULENAME}/* python-${MODULENAME}-${VERSION} 18 17 19 # dassmodus package also contains templates20 if [ $1 = dassmodus ]21 then22 cp -av ../templates python-${MODULENAME}-${VERSION}23 fi24 25 18 # copy setup.py file into directory 26 19 cp ${MODULENAME}/setup.py python-${MODULENAME}-${VERSION} 27 20 # remove svn secific files 28 21 find -type d | grep .svn | xargs rm -R 22 29 23 tar cjvf python-${MODULENAME}-${VERSION}.tar.bz2 python-${MODULENAME}-${VERSION} 30 24 rm -Rvf python-${MODULENAME}-${VERSION} 31 25 32 done 26 27 MODULENAME=dassmodus 28 VERSION=$1 29 30 mkdir ${MODULENAME}-${VERSION} 31 cp -av ../${MODULENAME}/* ${MODULENAME}-${VERSION} 32 33 # copy setup.py file into directory 34 cp ${MODULENAME}/setup.py ${MODULENAME}-${VERSION} 35 # remove svn secific files 36 find -type d | grep .svn | xargs rm -R 37 38 # dassmodus package also contains templates 39 cp -av ../templates ${MODULENAME}-${VERSION} 40 41 tar cjvf ${MODULENAME}-${VERSION}.tar.bz2 ${MODULENAME}-${VERSION} 42 rm -Rvf ${MODULENAME}-${VERSION} 43 44 -
dassmodus/trunk/dassmodus/packaging/dassmodus.spec
r972 r973 5 5 # norootforbuild 6 6 7 Name: python-dassmodus8 Version: 0. 27 Name: dassmodus 8 Version: 0.4 9 9 Release: 1 10 10 Summary: Python Package to edit Bacula Configuration Files … … 12 12 Group: Development/Libraries/Python 13 13 Source: %{name}-%{version}.tar.bz2 14 Source1: dassModus.desktop 14 15 BuildRequires: python-devel 15 16 BuildRoot: %{_tmppath}/%{name}-%{version}-build 17 18 %define python_site %{_prefix}/%{_lib}/python%{py_ver}/site-packages 16 19 17 20 %if 0%{?suse_version} && 0%{?suse_version} > 1110 … … 22 25 %if 0%{?suse_version} 23 26 %{py_requires} 27 %endif 28 29 %if 0%{?suse_version} 30 BuildRequires: update-desktop-files 24 31 %endif 25 32 … … 46 53 %endif 47 54 55 mkdir -p ${RPM_BUILD_ROOT}/usr/bin 56 # create start script 57 echo "#!/bin/sh 58 exec \"/usr/bin/dassModus.py\" \"$@\" 59 " > ${RPM_BUILD_ROOT}/usr/bin/dassModus 60 chmod +x ${RPM_BUILD_ROOT}/usr/bin/dassModus 61 62 # install icon 63 mkdir -p ${RPM_BUILD_ROOT}/usr/share/pixmaps/ 64 cp dassmodus/icons/DassModusLogo/logo64.png ${RPM_BUILD_ROOT}/usr/share/pixmaps/dassModus.png 65 66 # desktop file 67 %if 0%{?suse_version} 68 %suse_update_desktop_file -i -r -n dassModus System Backup 69 %else 70 mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications/ 71 cp %{SOURCE1} ${RPM_BUILD_ROOT}/usr/share/applications/ 72 %endif 73 48 74 %files -f INSTALLED_FILES 49 75 %defattr(-,root,root) 76 /usr/bin/dassModus 77 /usr/share/pixmaps/dassModus.png 78 /usr/share/applications/dassModus.desktop 50 79 51 80 %changelog
Note:
See TracChangeset
for help on using the changeset viewer.