The Melachot of Spinning
Looking at the act of spinning wool and processing it beforehand.
We begin with a Mishna which lays out the 39 Melachot, which are prohibited acts of labour involved in the building of the Mishkan:

אֲבוֹת מְלָאכוֹת אַרְבָּעִים חָסֵר אֶחָת. הַזּוֹרֵעַ. וְהַחוֹרֵשׁ. וְהַקּוֹצֵר. וְהַמְעַמֵּר. הַדָּשׁ. וְהַזּוֹרֶה. הַבּוֹרֵר. הַטּוֹחֵן. וְהַמְרַקֵּד. וְהַלָּשׁ. וְהָאוֹפֶה. הַגּוֹזֵז אֶת הַצֶּמֶר. הַמְלַבְּנוֹ. וְהַמְנַפְּצוֹ. וְהַצּוֹבְעוֹ. וְהַטּוֹוֶה. וְהַמֵּסֵךְ. וְהָעוֹשֶׂה שְׁנֵי בָתֵּי נִירִין. וְהָאוֹרֵג שְׁנֵי חוּטִין. וְהַפּוֹצֵעַ שְׁנֵי חוּטִין. הַקּוֹשֵׁר. וְהַמַּתִּיר. וְהַתּוֹפֵר שְׁתֵּי תְפִירוֹת. הַקּוֹרֵעַ עַל מְנָת לִתְפֹּר שְׁתֵּי תְפִירוֹת. הַצָּד צְבִי. הַשּׁוֹחֲטוֹ. וְהַמַּפְשִׁיטוֹ. הַמּוֹלְחוֹ, וְהַמְעַבֵּד אֶת עוֹרוֹ. וְהַמּוֹחֲקוֹ. וְהַמְחַתְּכוֹ. הַכּוֹתֵב שְׁתֵּי אוֹתִיּוֹת. וְהַמּוֹחֵק עַל מְנָת לִכְתֹּב שְׁתֵּי אוֹתִיּוֹת. הַבּוֹנֶה. וְהַסּוֹתֵר. הַמְכַבֶּה. וְהַמַּבְעִיר. הַמַּכֶּה בַפַּטִּישׁ. הַמּוֹצִיא מֵרְשׁוּת לִרְשׁוּת. הֲרֵי אֵלּוּ אֲבוֹת מְלָאכוֹת אַרְבָּעִים חָסֵר אֶחָת:

This fundamental mishna enumerates those who perform the primary categories of labor prohibited on Shabbat, which number forty-less-one. They are grouped in accordance with their function: One who sows, and one who plows, and one who reaps, and one who gathers sheaves into a pile, and one who threshes, removing the kernel from the husk, and one who winnows threshed grain in the wind, and one who selects the inedible waste from the edible, and one who grinds, and one who sifts the flour in a sieve, and one who kneads dough, and one who bakes. Additional primary categories of prohibited labor are the following: One who shears wool, and one who whitens it, and one who combs the fleece and straightens it, and one who dyes it, and one who spins the wool, and one who stretches the threads of the warp in the loom, and one who constructs two meshes, tying the threads of the warp to the base of the loom, and one who weaves two threads, and one who severs two threads for constructive purposes, and one who ties a knot, and one who unties a knot, and one who sews two stitches with a needle, as well as one who tears a fabric in order to sew two stitches.One who traps a deer, or any living creature, and one who slaughters it, and one who flays it, and one who salts its hide, a step in the tanning process, and one who tans its hide, and one who smooths it, removing hairs and veins, and one who cuts it into measured parts. One who writes two letters and one who erases in order to write two letters. One who builds a structure, and one who dismantles it, one who extinguishes a fire, and one who kindles a fire. One who strikes a blow with a hammer to complete the production process of a vessel (Rabbeinu Ḥananel), and one who carries out an object from domain to domain. All these are primary categories of labor, and they number forty-less-one.

We know what they are, but the Talmud expands on why:

הא דתנן אבות מלאכות ארבעים חסר אחת כנגד מי

That which we learned in the Mishnah: The primary categories of labor [melachot], which are prohibited by Torah law on Shabbat, are forty-less-one; to what does this number correspond?

Then it answers:

אמר להו ר' חנינא בר חמא כנגד עבודות המשכן אמר להו ר' יונתן בר' אלעזר כך אמר רבי שמעון ברבי יוסי בן לקוניא כנגד מלאכה מלאכתו ומלאכת שבתורה ארבעים חסר אחת

Rabbi Ḥanina bar Ḥama said to them: They correspond to the labors in the Tabernacle. Rabbi Yonatan, son of Rabbi Elazar, said to them that thus said Rabbi Shimon, son of Rabbi Yosei ben Lakonya: "They correspond to the instances of the words 'labor' [melacha], 'his labor' [melachto], and 'the labor of' [melechet], that appear in the Torah a total of forty-less-one times."

And for avoidance of doubt, one more source relating specifically to various textile Melachot:

הַגּוֹזֵז אֶת הַצֶּמֶר, הַמְלַבְּנוֹ, וְהַמְנַפְּצוֹ, וְהַצּוֹבְעוֹ, וְהַטּוֹוֶה, וְהַמֵּיסֵךְ, וְהָעוֹשֶׂה שְׁתֵּי בָתֵּי נִירִין, וְהָאוֹרֵג שְׁנֵי חוּטִין, וְהַפּוֹצֵעַ שְׁנֵי חוּטִין. הַקּוֹשֵׁר, וְהַמַּתִּיר, וְהַתּוֹפֵר שְׁתֵּי תְפִירוֹת, הַקּוֹרֵעַ עַל מְנָת לִתְפּוֹר [שְׁתֵּי תְפִירוֹת].

Additional primary categories of prohibited labor are the following: One who shears wool, and one who whitens it, and one who combs the fleece and straightens it, and one who dyes it, and one who spins the wool, and one who stretches the threads of the warp in the loom, and one who constructs two meshes, tying the threads of the warp to the base of the loom, and one who weaves two threads, and one who severs two threads for constructive purposes, and one who ties a knot, and one who unties a knot, and one who sews two stitches with a needle, as well as one who tears a fabric in order to sew two stitches.

We also learn about what was made. The spinning wasn't done in isolation. First they were dyed various colours, and then the spun threads were spun together (although some commentators say this is Koshair (tying) rather than Toveh (spinning).

וְאֶת־הַמִּשְׁכָּ֥ן תַּעֲשֶׂ֖ה עֶ֣שֶׂר יְרִיעֹ֑ת שֵׁ֣שׁ מׇשְׁזָ֗ר וּתְכֵ֤לֶת וְאַרְגָּמָן֙ וְתֹלַ֣עַת שָׁנִ֔י כְּרֻבִ֛ים מַעֲשֵׂ֥ה חֹשֵׁ֖ב תַּעֲשֶׂ֥ה אֹתָֽם׃

As for the tabernacle, make it of ten strips of cloth; make these of fine twisted linen, of blue, purple, and crimson yarns, with a design of cherubim worked into them.

שש משזר ותכלת ותלעת שני. הֲרֵי אַרְבָּעָה מִינִין יַחַד חוּט וְחוּט – אֶחָד שֶׁל פִּשְׁתָּן וּשְׁלֹשָׁה שֶׁל צֶמֶר – וְכָל חוּט וְחוּט כָּפוּל ו' הֲרֵי אַרְבָּעָה מִינִין כְּשֶׁהֵן שְׁזוּרִין יַחַד כ"ד כְּפָלִים לַחוּט (יומא ע"א):

שש משזר ותכלת וארגמן ותלעת שני OF FINE TWINED LINEN AND BLUE PURPLE, AND RED PURPLE, AND CRIMSON — Thus there were four different materials in every thread, one of linen and three of wool, each of the strands of which a thread was composed being sixfold (the word is taken here in the double sense of שש “linen” and of שש “six”). Consequently the four materials intertwined into one thread gave a twenty-four-fold thread (Yoma 71b; Baraita DeMelekhet HaMishkan ch. 2).