Changeset 973 for dassmodus


Ignore:
Timestamp:
Oct 21, 2011, 1:45:07 PM (13 years ago)
Author:
pstorz
Message:

changed package name to dassmodus

Location:
dassmodus/trunk/dassmodus/packaging
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • dassmodus/trunk/dassmodus/packaging/create_rpm_sources.sh

    r964 r973  
    99fi
    1010
    11 for PACK in dassmodus nosferatu; do
    1211
    13 MODULENAME=$PACK
     12MODULENAME=nosferatu
    1413VERSION=$1
    1514
     
    1716cp -av ../${MODULENAME}/*  python-${MODULENAME}-${VERSION}
    1817
    19 # dassmodus package also contains templates
    20 if [ $1 = dassmodus ]
    21 then
    22 cp -av ../templates  python-${MODULENAME}-${VERSION}
    23 fi
    24 
    2518# copy setup.py file into directory
    2619cp ${MODULENAME}/setup.py python-${MODULENAME}-${VERSION}
    2720# remove svn secific files
    2821find -type d | grep .svn | xargs rm -R
     22
    2923tar cjvf python-${MODULENAME}-${VERSION}.tar.bz2 python-${MODULENAME}-${VERSION}
    3024rm -Rvf python-${MODULENAME}-${VERSION}
    3125
    32 done
     26
     27MODULENAME=dassmodus
     28VERSION=$1
     29
     30mkdir ${MODULENAME}-${VERSION}
     31cp -av ../${MODULENAME}/* ${MODULENAME}-${VERSION}
     32
     33# copy setup.py file into directory
     34cp ${MODULENAME}/setup.py ${MODULENAME}-${VERSION}
     35# remove svn secific files
     36find -type d | grep .svn | xargs rm -R
     37
     38# dassmodus package also contains templates
     39cp -av ../templates  ${MODULENAME}-${VERSION}
     40
     41tar cjvf ${MODULENAME}-${VERSION}.tar.bz2 ${MODULENAME}-${VERSION}
     42rm -Rvf ${MODULENAME}-${VERSION}
     43
     44
  • dassmodus/trunk/dassmodus/packaging/dassmodus.spec

    r972 r973  
    55# norootforbuild
    66
    7 Name:           python-dassmodus
    8 Version:        0.2
     7Name:           dassmodus
     8Version:        0.4
    99Release:        1
    1010Summary:        Python Package to edit Bacula Configuration Files
     
    1212Group:          Development/Libraries/Python
    1313Source:         %{name}-%{version}.tar.bz2
     14Source1:        dassModus.desktop
    1415BuildRequires:  python-devel
    1516BuildRoot:      %{_tmppath}/%{name}-%{version}-build
     17
     18%define python_site    %{_prefix}/%{_lib}/python%{py_ver}/site-packages
    1619
    1720%if 0%{?suse_version} && 0%{?suse_version} > 1110
     
    2225%if 0%{?suse_version}
    2326%{py_requires}
     27%endif
     28
     29%if 0%{?suse_version}
     30BuildRequires:  update-desktop-files
    2431%endif
    2532
     
    4653%endif
    4754
     55mkdir -p  ${RPM_BUILD_ROOT}/usr/bin
     56# create start script
     57echo "#!/bin/sh
     58exec \"/usr/bin/dassModus.py\" \"$@\"
     59" > ${RPM_BUILD_ROOT}/usr/bin/dassModus
     60chmod +x ${RPM_BUILD_ROOT}/usr/bin/dassModus
     61
     62# install icon
     63mkdir -p ${RPM_BUILD_ROOT}/usr/share/pixmaps/
     64cp 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
     70mkdir -p ${RPM_BUILD_ROOT}/usr/share/applications/
     71cp %{SOURCE1}  ${RPM_BUILD_ROOT}/usr/share/applications/
     72%endif
     73
    4874%files -f INSTALLED_FILES
    4975%defattr(-,root,root)
     76/usr/bin/dassModus
     77/usr/share/pixmaps/dassModus.png
     78/usr/share/applications/dassModus.desktop
    5079
    5180%changelog
Note: See TracChangeset for help on using the changeset viewer.