Package wanpipe: Specfile
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 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 | %set_verify_elf_method relaxed %define kernel_flavour ovz-el %add_findreq_skiplist %_sysconfdir/* Name: wanpipe Summary: %name Version: 7.0.5 Release: alt1 License: GPL Group: System/Kernel and hardware BuildRequires: bison flex gcc-c++ libncurses-devel libreadline rsync BuildPreReq: kernel-headers-modules-%kernel_flavour BuildPreReq: kernel-headers-dahdi-%kernel_flavour BuildPreReq: less Url: http://wiki.sangoma.com/wanpipe-linux-drivers Packager: Denis Smirnov <mithraen@altlinux.ru> Source: %name-%version.tar Patch: %name-%version-%release.patch %package -n kernel-source-wanpipe Summary: %name Group: Development/Kernel %description -n kernel-source-wanpipe %name %package -n libsangoma Summary: %name Group: System/Kernel and hardware %description -n libsangoma %name %package -n libsangoma-devel Summary: %name Group: System/Kernel and hardware Requires: libsangoma = %version-%release %description -n libsangoma-devel %name %package -n libsangoma-devel-static Summary: %name Group: System/Kernel and hardware Requires: libsangoma-devel = %version-%release %description -n libsangoma-devel-static %name %package complete Summary: %name Group: System/Kernel and hardware Requires: kernel-source-wanpipe = %version-%release Requires: libsangoma-devel = %version-%release Requires: libsangoma = %version-%release Requires: wanpipe-docs = %version-%release Requires: wanpipe = %version-%release %description complete %name %package docs Summary: %name Group: System/Kernel and hardware BuildArch: noarch %description docs %name %description %name %prep %setup %patch -p1 find -type f -name '*.swp' -delete find -type f -name '*.bak' -delete find -type f -name '*.orig' -delete find -type d -name '.svn' -print0 | xargs -0r rm -rf find -type f -name 'wanconfig_client' -delete find -type f -name 'wpkbdmon' -delete find -type f -name 'wp_x25_event_read' -delete %build tar -c -j -f ../%name-%version.tar.bz2 . ls -l %install tmp_root=../000 tmp_kernel=../tmp.kernel mkdir -p $tmp_root $tmp_kernel tmp_root=`realpath "$tmp_root"` tmp_kernel=`realpath "$tmp_kernel"` mkdir -p $tmp_root/etc/wanpipe mkdir -p $tmp_kernel krn=%_usrsrc/`ls -1 %_usrsrc | grep ^linux-.*-%kernel_flavour-alt | sort -n | tail -1` rsync -ak --delete $krn/ $tmp_kernel/ inc=`realpath $tmp_kernel/include` bd=$tmp_root cp -a $tmp_kernel/drivers/dahdi/* $tmp_kernel/kernel/ cat $tmp_kernel/kernel-modules-dahdi.symvers >> $tmp_kernel/Module.symvers touch $tmp_kernel/drivers/Makefile export EXTRA_FLAGS=-I$inc ./Setup install \ --silent \ --builddir=$bd \ --protocol=TDM \ --with-linux="$tmp_kernel" \ --with-zaptel=$tmp_kernel/drivers/ mkdir -p %buildroot%_usrsrc/kernel/sources/ cp ../%name-%version.tar.bz2 %buildroot%_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2 install -D -m755 samples/wanrouter $bd%_initdir/wanrouter rm -rf $tmp_root/%_sysconfdir/wanpipe/api rm -rf $tmp_root/lib/modules rm -rf $tmp_root/%_docdir rm -f $tmp_root/usr/local/sbin/setup-sangoma mv $tmp_root/%_sysconfdir/wanpipe/util/wan_aftup/wan_aftup $tmp_root/%_sbindir/ ln -s %_sbindir/wan_aftup $tmp_root/%_sysconfdir/wanpipe/util/wan_aftup/wan_aftup %ifarch x86_64 mkdir -p $tmp_root/usr/lib64 mv $tmp_root/usr/lib/* $tmp_root/usr/lib64/ %endif find $tmp_root/ -type d -empty -delete cp -a $tmp_root/* %buildroot/ rm -f %buildroot/etc/wanpipe/util/wan_aftup/*.o %preun %preun_service wanrouter %post %post_service wanrouter %files %_initdir/wanrouter %_sbindir/* %config(noreplace) %_sysconfdir/wanpipe %files -n kernel-source-wanpipe %_usrsrc/kernel/sources/kernel-source-%name-%version.tar.bz2 %files -n libsangoma %_libdir/libsangoma.so.* %_libdir/libstelephony.so.* %files -n libsangoma-devel %_libdir/libsangoma.so %_libdir/libstelephony.so %_includedir/* %files -n libsangoma-devel-static %_libdir/libsangoma.a %_libdir/libstelephony.a %files complete %files docs %changelog * Tue Sep 03 2013 Denis Smirnov <mithraen@altlinux.ru> 7.0.5-alt1 - 7.0.5 * Sat Jun 01 2013 Denis Smirnov <mithraen@altlinux.ru> 7.0.3-alt1 - 7.0.3 * Mon Apr 15 2013 Denis Smirnov <mithraen@altlinux.ru> 7.0.1-alt1 - 7.0.1 * Sat Jul 09 2011 Denis Smirnov <mithraen@altlinux.ru> 3.5.20-alt1 - 3.5.20 * Sun Jan 09 2011 Denis Smirnov <mithraen@altlinux.ru> 3.5.14-alt1 - 3.5.14 * Sun Apr 18 2010 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt7 - fix build (build with headers from ovz-smp) * Wed Nov 11 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt6 - fix build - fix DAHDI support in default start script * Thu Sep 17 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt5 - build with DAHDI instead of Zaptel * Wed Sep 16 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt4 - correct initscript install * Wed Sep 02 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt3 - fix building * Wed Sep 02 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt2 - fix requires * Wed Sep 02 2009 Denis Smirnov <mithraen@altlinux.ru> 3.5.6-alt1 - 3.5.6 * Mon Feb 16 2009 Denis Smirnov <mithraen@altlinux.ru> 3.3.15-alt1.4 - package initscript * Mon Dec 15 2008 Denis Smirnov <mithraen@altlinux.ru> 3.3.15-alt1.3 - small fixes * Mon Dec 15 2008 Denis Smirnov <mithraen@altlinux.ru> 3.3.15-alt1.2 - fix kernel-source-%name - build kernel-source-%name as noarch * Sun Dec 14 2008 Denis Smirnov <mithraen@altlinux.ru> 3.3.15-alt1.1 - fix build in hasher * Sun Dec 14 2008 Denis Smirnov <mithraen@altlinux.ru> 3.3.15-alt1 - first build for Sisyphus |